Handle default 0 headline

Also support headline within abstract menu.
This commit is contained in:
Daniel Siepmann 2019-11-28 13:28:07 +01:00
parent 64f73aa566
commit 8fc7aac5a9
2 changed files with 10 additions and 1 deletions

View file

@ -23,11 +23,20 @@ lib.contentElement {
}
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

View file

@ -6,7 +6,7 @@
<f:section name="Header">
{f:render(partial: 'Header', arguments: {
uid: data.uid,
layout: data.header_layout,
layout: headerLayout,
header: '{data.header} {topic.0.data.title}'
})}
</f:section>