123456789101112 |
- {% set options = { items: {'@page.children': blog.url }, 'order': {'by': 'title', 'dir': 'asc'} } %}
- <ul>
- {% for p in blog.collection(options) %}
- {% set active_page = (p.active or p.activeChild) ? 'active' : '' %}
- <li>
- <a href="{{ p.url }}" class="{{ active_page }}">
- {{ p.menu }}
- </a>
- </li>
- {% endfor %}
- </ul>
|