Skip to content

[5.x] Allow fetching children of other entries in {{ children }} tag#11922

Merged
jasonvarga merged 2 commits intostatamic:5.xfrom
daun:feature/children-of-other-entry
Jul 4, 2025
Merged

[5.x] Allow fetching children of other entries in {{ children }} tag#11922
jasonvarga merged 2 commits intostatamic:5.xfrom
daun:feature/children-of-other-entry

Conversation

@daun
Copy link
Copy Markdown
Contributor

@daun daun commented Jul 3, 2025

I was trying to use the {{ children }} tag to list the children of a page other than the current one, and found it required a somewhat unintuitive combination of tags, or a custom one.

This proposal allows {{ children of="/another/entry" }}, with the same behavior, just another starting point in the collection. Added a test to confirm the desired behavior.

@jasonvarga jasonvarga merged commit dc67511 into statamic:5.x Jul 4, 2025
25 checks passed
@daun daun deleted the feature/children-of-other-entry branch July 8, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants