Documentation
Navigation Examples
Category: Displaying Content
Main Navigation
Restrict navigation to only the top level pages:
{exp:structure:nav start_from="/" max_depth="1"}
Sitemap and All Navigation
Show all pages within your site:
{exp:structure:nav start_from="/" show_depth="999"}
Sub Navigation
{exp:structure:nav start_from="/{segment_1}"}
This version of the tag reveals children of the current page as you drill down within your hierarchy.
Adding An Overview (Parent) Link To Sub Navigation
show_overview=“yes”: Add a link to the top of your navigation that links to the top parent
rename_overview=“Overview”: Change the title of the link to your top level parent page.
{exp:structure:nav start_from="/{segment_1}" show_overview="yes" rename_overview="Overview"}
This will add the following to the beginning of your navigation list:
<li><a href="/top-level">Top Level</a></li>
You can also manipulate sub navigation instances using show_depth and max_depth to reveal more levels at one (show_) or restrict how deep users can drill down the hierarchy (max_).
