{% extends 'partials/base.html.twig' %} {% macro loop(page) %} {% for p in page.children.visible %} {% set current_page = (p.active or p.activeChild) ? 'selected' : '' %}
{# parent #}

{{ p.menu|e}}

{{ p.content|raw }} {% if p.children.visible.count >= 0 %}
{% for ppage in p.children.visible %}

{{ ppage.menu|e }}

{{ ppage.content|raw }} {% if p.children.visible.count >= 0 %}
{% for pppage in ppage.children.visible %}

{{ pppage.menu|e }}

{{ pppage.content|raw }} {% endfor %}
{% endif %} {% endfor %}
{% endif %}
{% endfor %} {% endmacro %} {% block content %} {{ _self.loop(pages) }} {% endblock %}