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