Accessing child pages
Created 7 years ago by royallthefourth

Within a template, is it possible to iterate a set of the current page's children? If it's not, is the "multiple" fieldtype what I'm looking for?

ryanthompson  —  7 years ago

You sure can!

{% for child in page.children %}
    {{ child.path }}
{% endfor %}

If you're not within the layout you can access the active page with {{ }} and use it the same way 😊

royallthefourth  —  7 years ago