nav
Creates a simple HTML list as navigation below a given page. This method basically serves as a shorthand version of a foreach loop iterating over a pagelist of type "children"
.
<@ nav { options } @>
Options
- context: "/" String
- The parent context of the listed navigation items.
- homepage: false Boolean
- Defines whether the homepage is included to a navigation with the root page as parent.
- excludeHidden: true Boolean
- Defines whether hidden pages are excluded from the navigation.
- class: false String|false
- An optional class of the wrapping
<ul>
element. - active: false String|false
- An optional class for the active
<li>
element.
Example
A simple example to generate a top-level navigation:
<@ nav {
context: '/',
class: 'nav',
active: 'active'
} @>