From 8fc7aac5a98de55569aa3f359cbd5926e629c814 Mon Sep 17 00:00:00 2001 From: Daniel Siepmann Date: Thu, 28 Nov 2019 13:28:07 +0100 Subject: [PATCH] Handle default 0 headline Also support headline within abstract menu. --- .../TypoScript/Setup/ContentElements/Basic.typoscript | 9 +++++++++ .../Private/Templates/ContentElements/MenuAbstract.html | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Configuration/TypoScript/Setup/ContentElements/Basic.typoscript b/Configuration/TypoScript/Setup/ContentElements/Basic.typoscript index 772efe4..d7e417d 100644 --- a/Configuration/TypoScript/Setup/ContentElements/Basic.typoscript +++ b/Configuration/TypoScript/Setup/ContentElements/Basic.typoscript @@ -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 diff --git a/Resources/Private/Templates/ContentElements/MenuAbstract.html b/Resources/Private/Templates/ContentElements/MenuAbstract.html index 2bc189d..44f338b 100644 --- a/Resources/Private/Templates/ContentElements/MenuAbstract.html +++ b/Resources/Private/Templates/ContentElements/MenuAbstract.html @@ -6,7 +6,7 @@ {f:render(partial: 'Header', arguments: { uid: data.uid, - layout: data.header_layout, + layout: headerLayout, header: '{data.header} {topic.0.data.title}' })}