-
-
Notifications
You must be signed in to change notification settings - Fork 480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Children tag pair doesn't return as expected #5567
Comments
@sjclark - I had a similar problem and made a generic children tag: you can access the children of a node (entry, ..) with
So for example:
I use this tag with
|
@wesort have you tried on the latest version? |
Are you guys using the new Tried using |
I get (either pair or single)
|
😂 This hilarity works
|
any traction on this issue? Still using the |
@sjclark Bro. This actually helped me trying to figure out some logic for a more complicated sub-nav where |
😂 likely better ways to do it these days, but glad it helped regardless |
Bug description
To output and loop through child page(s) data when on a parent page.
Have tried to template in a number of ways but nothing . I've seen
{{ children }}
referenced in the Nav docs but I've not found{{ children }}
mentioned explicitly in the way the{{ parent }}
tag is.Using
{{ dump }}
I see:? Related to #5554
? Related to #5565
How to reproduce
id: 64ab5c1b-0e3c-42f1-8692-96fabdb5a0dd
)id
(example:8afc0251-58f1-4e12-983d-34248504ab8d
)Content (tree)
[Attempted] Templating
NB: I'd like all the child data, but for simplicity here I'm just reaching for
id
or
or
Logs
No response
Versions
Statamic 3.3.1 Pro
Laravel 9.5.1
PHP 8.0.16
aryehraber/statamic-uuid 2.1.0
doublethreedigital/duplicator 2.1.1
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
The text was updated successfully, but these errors were encountered: