Skip to content
diyphpdeveloper edited this page Apr 12, 2019 · 1 revision

USAGE

Generates and outputs a navigational list of links.

{{ navigation('main_menu') }}

By default the navigation function will output the items in a navigation as on unordered list with the following format:

<ul>
    <li class="first"><a href="http://somedomain.com/link1">Link 1</a></li>
    <li class="current-item-ancestor"><a href="http://somedomain.com/link2">Link 2</a>
    <ul>
        <li class="first last current-item"><a href="http://somedomain.com/sublink-link1">Sub Link 1</a></li>
    </ul>
    </li>
    <li class="last"><a href="http://somedomain.com/link3">Link 3</a></li>
</ul>

Behavioral arguments can also be provided to further manipulate rendering.

{{ navigation('main_menu', ul_id='my_navigation', max_depth=2, min_depth=1) }}

ARGUMENTS

  • max_depth
  • min_depth
  • start_from_current_depth
  • only_current_branch
  • children_visibility
  • recursive
  • ul_id
  • ul_class
Clone this wiki locally