ds-site/Resources/Private/Templates/Page/Full.html

62 lines
1.7 KiB
HTML
Raw Normal View History

2020-01-23 10:06:00 +01:00
<html xmlns:f="http://typo3.org/ns/TYPO3/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<f:layout name="Content" />
<f:section name="Header">
{data.title}
</f:section>
2020-01-23 10:06:00 +01:00
<f:section name="Content">
<main>{contentMain -> f:format.raw()}</main>
</f:section>
<f:section name="Aside">
2022-01-27 15:49:36 +01:00
{f:render(partial: 'MainMenu', arguments: {
pages: mainMenu.0.children
})}
2020-02-07 14:04:30 +01:00
{f:render(section: 'Breadcrumb', arguments: {
breadcrumb: rootline
})}
{f:render(section: 'TableOfContent', arguments: {
pageContent: pageContent
2020-02-07 14:04:30 +01:00
})}
</f:section>
<f:section name="Breadcrumb">
<f:if condition="{breadcrumb}">
<nav>
<h1>Breadcrumb</h1>
<ul>
<f:for each="{breadcrumb}" as="page">
<li>
<a href="{page.link}">{page.title}</a>
</li>
</f:for>
</ul>
</nav>
</f:if>
</f:section>
<f:section name="TableOfContent">
2020-01-23 10:06:00 +01:00
<nav>
<details open>
<summary>
<h2>Table of Content</h2>
</summary>
<ol>
<f:for each="{pageContent}" as="contentEntry">
<f:if condition="{contentEntry.data.header}">
<li>
<a href="#{contentEntry.data.header -> f:format.id()}">{contentEntry.data.header}</a>
</li>
</f:if>
</f:for>
</ol>
</details>
2020-01-23 10:06:00 +01:00
</nav>
</f:section>
</html>