Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Demonstrate footer menu in site package tutorial package #481

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
page {
10 {
dataProcessing {
40 = menu
40 {
as = footerMenu
special = directory
special.value = {${{ package.packageName }}.footerMenuRoot}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<ul class="nav col-md-4 justify-content-end">
<li class="nav-item"><a href="#" class="nav-link px-2 text-body-secondary">Data privacy</a></li>
<li class="nav-item"><a href="#" class="nav-link px-2 text-body-secondary">Imprint</a></li>
</ul>
<f:if condition="{footerMenu}">
<ul class="nav col-md-4 justify-content-end">
<f:for each="{footerMenu}" as="menuItem">
<li class="nav-item"><a href="{menuItem.link}" class="nav-link px-2 text-body-secondary">{menuItem.title}</a></li>
</f:for>
</ul>
</f:if>
Loading