Navigation
Navigation allows an author to build a site navigation. It is commonly added to a page template, in the header or footer.
When added to a page template, if the configured Navigation Root is in a live copy blueprint or language copy master, then the navigation displayed on the pages resulting from this template will display the navigation structure that the accessed page is located in.
Standard
The default behavior of the navigation component is to generate a nested navigation structure from the configured page tree. It will collect all child pages by iterating deeply through the entire page hiearchy. When not configured otherwise, the root page will be excluded, and all pages that are marked to be hidden from the navigation will not be listed. The text shown for each linked page is the Navigation Title when provided by the page, or the main page Title otherwise. Pages that have a redirection target to other pages, like the Breadcrumb and the Language Navigation pages will be linked directly to the redirection target, from which also the title is taken.
- Properties
- disableShadowing: true
- navigationRoot: /content/uoa-showcase
- sling:resourceType: uoa-web/components/navigation
Show Root Page
In this example we display the root page that is hidden by default by reducing the Exclude Root Levels option to zero.
- Properties
- disableShadowing: true
- navigationRoot: /content/uoa-showcase
- sling:resourceType: uoa-web/components/navigation
- structureStart: 0
Starting Level
Multiple root levels can be skipped. In this example, setting the Exclude Root Levels to 2 shows then only shows the leaf pages.
- Properties
- disableShadowing: true
- navigationRoot: /content/uoa-showcase
- sling:resourceType: uoa-web/components/navigation
- structureStart: 2