Add breadcrumb
This commit is contained in:
parent
98ef515b32
commit
cac99ad356
2 changed files with 47 additions and 9 deletions
|
@ -110,6 +110,19 @@ page {
|
||||||
references.fieldName = media
|
references.fieldName = media
|
||||||
}
|
}
|
||||||
|
|
||||||
|
800 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
|
||||||
|
800 {
|
||||||
|
as = rootline
|
||||||
|
special = rootline
|
||||||
|
# First two level are root page and folders for structure
|
||||||
|
special.range = 2|-2
|
||||||
|
|
||||||
|
if {
|
||||||
|
value = 2
|
||||||
|
isGreaterThan.data = level
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
1000 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
|
1000 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
|
||||||
1000 {
|
1000 {
|
||||||
as = footerMenu
|
as = footerMenu
|
||||||
|
|
|
@ -12,10 +12,36 @@
|
||||||
</f:section>
|
</f:section>
|
||||||
|
|
||||||
<f:section name="Aside">
|
<f:section name="Aside">
|
||||||
|
|
||||||
|
{f:render(section: 'Breadcrumb', arguments: {
|
||||||
|
breadcrumb: rootline
|
||||||
|
})}
|
||||||
|
|
||||||
|
{f:render(section: 'TableOfContent', arguments: {
|
||||||
|
contentSections: pageSections.0.content
|
||||||
|
})}
|
||||||
|
|
||||||
|
</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">
|
||||||
<nav>
|
<nav>
|
||||||
<h1>Table of Content</h1>
|
<h1>Table of Content</h1>
|
||||||
<ol>
|
<ol>
|
||||||
<f:alias map="{contentSections: pageSections.0.content}">
|
|
||||||
<f:for each="{contentSections}" as="contentEntry">
|
<f:for each="{contentSections}" as="contentEntry">
|
||||||
<f:if condition="{contentEntry.data.header}">
|
<f:if condition="{contentEntry.data.header}">
|
||||||
<li>
|
<li>
|
||||||
|
@ -23,7 +49,6 @@
|
||||||
</li>
|
</li>
|
||||||
</f:if>
|
</f:if>
|
||||||
</f:for>
|
</f:for>
|
||||||
</f:alias>
|
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
</f:section>
|
</f:section>
|
||||||
|
|
Loading…
Reference in a new issue