Radical Design Course by Jack McDade

From the creator of Statamic

Learn how to make your websites standout and be remembered.

Taking your approach on designing things actually makes it fun, more natural, and overall easier.

— Dominik, Developer

Children Tag

The Children tag allows you to loop over and fetch data from the current URL.

Overview

Warning!

Not to be confused with the children variable when inside the Nav tag.

The children tag allows you to fetch data and loop over the children of the current page/URL. Can be handy when building a sub-nav, for example.

You can get the parent by using the Parent tag.

Example

{{ children }}
{{ title }}
{{ /children }}
<statamic:children>
{{ $title }}
</statamic:children>
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →