Add footer menu

This commit is contained in:
Daniel Siepmann 2019-11-28 13:18:30 +01:00
parent ad4fee5213
commit 2c87cbdf3a
5 changed files with 26 additions and 3 deletions

View file

@ -83,6 +83,14 @@ page {
orderBy = sorting orderBy = sorting
as = allTypo3Compatible as = allTypo3Compatible
} }
1000 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
1000 {
special = list
special.value = 3
levels = 2
as = footerMenu
}
} }
settings { settings {

View file

@ -20,7 +20,7 @@
</main> </main>
<footer> <footer>
{f:render(partial: 'FooterMenu', arguments: {pages: footerMenu.0.children})}
<p>ⓒ by Daniel Siepmann 2016 - {f:format.date(format: 'Y', date: 'now')}</p> <p>ⓒ by Daniel Siepmann 2016 - {f:format.date(format: 'Y', date: 'now')}</p>
<!-- TODO: Add imprint -->
</footer> </footer>
</html> </html>

View file

@ -0,0 +1,8 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<nav>
<f:for each="{pages}" as="page">
<a href="{page.link}">{page.title}</a>
</f:for>
</nav>
</html>

View file

@ -1,4 +1,11 @@
body > footer { body > footer {
padding-top: $spacer * 2; padding: {
text-align: center; top: $spacer * 2;
bottom: $spacer * 2;
}
text-align: center;
nav {
padding-bottom: $spacer;
}
} }

File diff suppressed because one or more lines are too long