feat: add footer menu, change paginator design

This commit is contained in:
2024-12-15 20:44:43 +01:00
parent 696881e4f8
commit 8905c5731d
6 changed files with 43 additions and 15 deletions

View File

@@ -1,5 +1,7 @@
# Include existing configuration
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:base/ContentBlocks" extensions="typoscript">
# Include constants
#<INCLUDE_TYPOSCRIPT: source="FILE:EXT:base/Configuration/Sets/SitePackage/TypoScript/constants.typoscript">
page = PAGE
page {
@@ -23,6 +25,12 @@ page {
as = mainnavigation
}
30 = page-content
40 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor
40 {
special = directory
special.value = 7
as = metanavigation
}
}
}
@@ -50,8 +58,6 @@ page {
}
# Use includeAssets to properly preload fonts with TYPO3 v13 asset handling.
# Make sure the font filenames do not have spaces. Convert them to use hyphens or underscores.
# After that, the AssetCollector will handle publishing to _assets folder.
includeAssets {
hajimeSansTtf {
path = EXT:base/Resources/Public/Fonts/Hajime-Sans.woff2
@@ -77,6 +83,8 @@ page {
}
}
}
footerMenuPid = {$footerMenuPid}
}
lib.contentElement {
@@ -101,3 +109,17 @@ lib.parseFunc_RTE {
}
}
}
# Define the footer menu to show subpages of the configured footerMenuPid
# special = directory will list all direct subpages of the given pid, not the page itself
lib.footerMenu = HMENU
lib.footerMenu {
special = directory
special.value = {$footerMenuPid}
1 = TMENU
1 {
wrap = <ul>|</ul>
NO = 1
NO.wrapItemAndSub = <li>|</li>
}
}