diff --git a/Configuration/TypoScript/Setup/ContentElements/Basic.typoscript b/Configuration/TypoScript/Setup/ContentElements/Basic.typoscript
index cdcb351..772efe4 100644
--- a/Configuration/TypoScript/Setup/ContentElements/Basic.typoscript
+++ b/Configuration/TypoScript/Setup/ContentElements/Basic.typoscript
@@ -12,6 +12,29 @@ lib.contentElement {
10 = EXT:ds_site/Resources/Private/Layouts/ContentElements/
}
+ variables {
+ headerLayout = COA
+ headerLayout {
+ 10 = TEXT
+ 10 {
+ if {
+ value = 100
+ equals.field = header_layout
+ }
+ value = hidden
+ }
+ 20 = TEXT
+ 20 {
+ if {
+ value = 100
+ isLessThan.field = header_layout
+ }
+ stdWrap.dataWrap = {field:header_layout} + 1
+ prioriCalc = intval
+ }
+ }
+ }
+
stdWrap {
editIcons = tt_content:
editIcons {
diff --git a/Resources/Private/Layouts/ContentElements/Default.html b/Resources/Private/Layouts/ContentElements/Default.html
index 4ec9550..d8f0fa3 100644
--- a/Resources/Private/Layouts/ContentElements/Default.html
+++ b/Resources/Private/Layouts/ContentElements/Default.html
@@ -4,7 +4,7 @@
{f:render(partial: 'Header', arguments: {
uid: data.uid,
- layout: data.header_layout,
+ layout: headerLayout,
header: data.header
})}
diff --git a/Resources/Private/Partials/ContentElements/Header.html b/Resources/Private/Partials/ContentElements/Header.html
index 9c31aa4..4b189df 100644
--- a/Resources/Private/Partials/ContentElements/Header.html
+++ b/Resources/Private/Partials/ContentElements/Header.html
@@ -1,8 +1,7 @@
-
-
- {header} ¶
+
+ {header} ¶