TWIG
<!-- Navigation 4 -->
<section>
{% for p in pages.children %}
{% if (p.active or p.activeChild) %}
{% for c in p.children %}
{% if (c.active or c.activeChild) %}
{% for cc in c.children %}
{% if (cc.active or cc.activeChild) %}
{% for ccc in cc.children %}
{% if (ccc.active) %}
<a class="active" href="{{ ccc.url }}">{{ ccc.title }}</a>
{% else %}
<a href="{{ ccc.url }}">{{ ccc.title }}</a>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</section>
how can i display only the section if there is a childpage available?
thanks!