Helper: navigation/section

« All helpers

Displays a single section of the navigation as a bulleted list, with class="current" added to the current page's <li> element for custom styling.

In PHP code, call it like this:

echo $this->run ('navigation/section', array ('section' => 'page-id'));

In a template, call it like this:

{! navigation/languages?section=page-id !}

To pass a dynamic value to section in a template:

{! navigation/languages?section=[id] !}

This passes the template's $data->id as the section value.

Also available in the dynamic objects menu as "Navigation: Section".