Display children of a page in blade #7726
Unanswered
japgroevemaker
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm having a hard time displaying the children of a page in blade. If i loop through the navigation of a collection and add a second loop through the children it always shows the children of that collection. I only want to show the children of a specific page when i'm visiting that page. Can anyone help me with that?
@foreach(Statamic::tag('nav:collection:verkeer) as $navItem)
@foreach($navItem['children'] as $item)
Beta Was this translation helpful? Give feedback.
All reactions