I have a really complex navigation with:
main pages > sub pages > sub pages with moduler content
My navigation just works fine with this code on the main pages:
{% for page in pages.children %}
{% if page.active %}
{% if page.children %}
{% for child in page.children %}
{% if child.visible %}
<ul class="app--side_menu-block">
<li class="head"><a href="{{ child.url }}">{{ child.menu }}</a></li>
{% if child.children %}
{% for lilchild in child.children %}
{% if lilchild.visible %}
{% set current_lil = (lilchild.active or lil.activeChild) ? 'active' : '' %}
<li class="item {{ current_lil }}"><a href="{{ lilchild.url }}">{{ lilchild.menu }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
</ul>
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}
But when I want to render the navigation with this code, nothing renders. I know what the problem is, just want to render the same menu on the sub pages with modular content corresponding to there main page.
Thanks