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

03 - Add a footer navigation to the website #8

Open
wants to merge 1 commit into
base: assignment/02
Choose a base branch
from

Conversation

luca-rath
Copy link
Contributor

@luca-rath luca-rath commented Jul 7, 2020

Add a footer navigation to the website

Goal

Right now, our website displays a static footer section on every page. We want to provide a way to manually manage
the links displayed in our footer section to our content manager.

Steps

  • Add a new navigation-context footer to the config/webspaces/example.xml file
  • Log into the admin UI with user "admin" and password "admin"
  • Create a new page and add the page to the footer navigation via the settings tab
  • Output the new footer navigation in your templates/base.html.twig

Hints

  • Have a look at the existing main navigation-context

More Information

Sulu allows to define multiple so called navigation contexts to which the content manager can add an arbitrary number
of pages. Navigation contexts are defined in the navigation-section of the webspace configuration and can be assigned
to a page via the settings tab in the administration interface.

After defining a navigation context, a developer can retrieve the navigation for a given context by using Twig
extensions delivered with Sulu. The provided Twig extensions allow to retrieve a flat list of pages or a complete
nested navigation tree.

Links

@alexander-schranz alexander-schranz added the assignment Pull request for a assignment solution label Sep 23, 2020
@niklasnatter niklasnatter force-pushed the assignment/03 branch 4 times, most recently from afbf342 to c37ea3b Compare October 23, 2020 09:16
@niklasnatter niklasnatter force-pushed the assignment/03 branch 2 times, most recently from 3cd912b to e71e032 Compare February 16, 2021 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
assignment Pull request for a assignment solution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants