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,4 +1,8 @@
<f:if condition="{header}">
<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:switch expression="{layout}">
<f:case value="1">
<h1>
@@ -37,16 +41,16 @@
</f:case>
<f:case value="8">
<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>
</f:case>
<f:case value="9">
<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>
</f:case>
<f:case value="100">
<f:comment> -- do not show header -- </f:comment>
<f:comment><!-- -- do not show header -- --></f:comment>
</f:case>
<f:defaultCase>
<f:if condition="{default}">
@@ -58,4 +62,6 @@
</f:if>
</f:defaultCase>>
</f:switch>
</f:if>
</f:if>
</html>