feat: optionally linked headlines

closes #86965w984
This commit is contained in:
Björn Fromme
2026-06-15 15:48:03 +02:00
parent 264ef8ab73
commit 9434585959
@@ -1,3 +1,7 @@
<html data-namespace-typo3-fluid="true" lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<f:if condition="{header}"> <f:if condition="{header}">
<f:switch expression="{layout}"> <f:switch expression="{layout}">
<f:case value="1"> <f:case value="1">
@@ -37,16 +41,16 @@
</f:case> </f:case>
<f:case value="8"> <f:case value="8">
<h1 class="headline--underlined{f:if(condition: subheader, then: ' headline--has-subline')}"> <h1 class="headline--underlined{f:if(condition: subheader, then: ' headline--has-subline')}">
<f:if condition="{subheader}"><span class="subline">{subheader -> f:format.raw()}&nbsp;</span></f:if>{header -> f:format.raw()} <f:if condition="{subheader}"><span class="subline">{subheader -> f:format.raw()}&nbsp;</span></f:if><f:link.typolink parameter="{link}">{header -> f:format.raw()}</f:link.typolink>
</h1> </h1>
</f:case> </f:case>
<f:case value="9"> <f:case value="9">
<h2 class="headline--underlined{f:if(condition: subheader, then: ' headline--has-subline')}"> <h2 class="headline--underlined{f:if(condition: subheader, then: ' headline--has-subline')}">
<f:if condition="{subheader}"><span class="subline">{subheader -> f:format.raw()}&nbsp;</span></f:if>{header -> f:format.raw()} <f:if condition="{subheader}"><span class="subline">{subheader -> f:format.raw()}&nbsp;</span></f:if><f:link.typolink parameter="{link}">{header -> f:format.raw()}</f:link.typolink>
</h2> </h2>
</f:case> </f:case>
<f:case value="100"> <f:case value="100">
<f:comment> -- do not show header -- </f:comment> <f:comment><!-- -- do not show header -- --></f:comment>
</f:case> </f:case>
<f:defaultCase> <f:defaultCase>
<f:if condition="{default}"> <f:if condition="{default}">
@@ -59,3 +63,5 @@
</f:defaultCase>> </f:defaultCase>>
</f:switch> </f:switch>
</f:if> </f:if>
</html>