ds-site/Configuration/TypoScript/Setup/ContentElements/Basic.typoscript
Daniel Siepmann 8fc7aac5a9 Handle default 0 headline
Also support headline within abstract menu.
2019-11-28 13:28:07 +01:00

54 lines
1.4 KiB
Text

lib.contentElement = FLUIDTEMPLATE
lib.contentElement {
templateName = Default
templateRootPaths {
10 = EXT:ds_site/Resources/Private/Templates/ContentElements/
}
partialRootPaths {
10 = EXT:ds_site/Resources/Private/Partials/
20 = EXT:ds_site/Resources/Private/Partials/ContentElements/
}
layoutRootPaths {
10 = EXT:ds_site/Resources/Private/Layouts/ContentElements/
}
variables {
headerLayout = COA
headerLayout {
10 = TEXT
10 {
if {
value = 100
equals.field = header_layout
}
value = hidden
}
15 = TEXT
15 {
if {
value = 0
equals.field = header_layout
}
value = 2
}
20 = TEXT
20 {
if {
value = 100
isLessThan.field = header_layout
isPositive.field = header_layout
}
stdWrap.dataWrap = {field:header_layout} + 1
prioriCalc = intval
}
}
}
stdWrap {
editIcons = tt_content:
editIcons {
beforeLastTag = -1
iconTitle = Edit Content Element
}
}
}