diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/Navigation/footerMenu.typoscript.twig b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/Navigation/footerMenu.typoscript.twig new file mode 100644 index 00000000..f634dada --- /dev/null +++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/TypoScript/Navigation/footerMenu.typoscript.twig @@ -0,0 +1,12 @@ +page { + 10 { + dataProcessing { + 40 = menu + 40 { + as = footerMenu + special = directory + special.value = {${{ package.packageName }}.footerMenuRoot} + } + } + } +} diff --git a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.definitions.yaml.twig b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.definitions.yaml.twig index 38e0b12b..e963beba 100644 --- a/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.definitions.yaml.twig +++ b/resources/packages/site_package_tutorial/13.4/src/Configuration/Sets/SitePackage/settings.definitions.yaml.twig @@ -7,6 +7,9 @@ categories: {{ package.packageName }}.layout: label: 'Layout' parent: {{ package.packageName }} + {{ package.packageName }}.menus: + label: 'Menus' + parent: {{ package.packageName }} settings: {{ package.packageName }}.template_path: @@ -36,3 +39,10 @@ settings: category: {{ package.packageName }}.layout type: string default: 'EXT:{{ package.extensionKey }}/Resources/Public/Icons/favicon.ico' + + {{ package.packageName }}.footerMenuRoot: + label: 'Footer menu root uid' + description: 'The subpages of this page are displayed in the footer' + category: {{ package.packageName }}.menus + type: int + default: 2 diff --git a/resources/packages/site_package_tutorial/13.4/src/Resources/Private/PageView/Partials/Navigation/FooterMenu.html b/resources/packages/site_package_tutorial/13.4/src/Resources/Private/PageView/Partials/Navigation/FooterMenu.html index 270a85da..01c3239f 100644 --- a/resources/packages/site_package_tutorial/13.4/src/Resources/Private/PageView/Partials/Navigation/FooterMenu.html +++ b/resources/packages/site_package_tutorial/13.4/src/Resources/Private/PageView/Partials/Navigation/FooterMenu.html @@ -1,4 +1,7 @@ -
+