Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Archive

nextSibling() issues

Started by Muut Archive 9 years ago · 0 replies · 349 views
9 years ago

I'm stuck on an issue that I posted in Github, if anyone has idea's it would be much appreciated :
https://github.com/getgrav/grav-learn/issues/344

I looked at dump(page) and it has a path attribute set to :

path: "/home/pz/Code/pp/user/pages/02.news"

When I look at the source code I see that nextSibling will return $this if the path is not in the collection so it looks like the current page object only holds one item. What's not obvious is that I have another taxonomy which does render a complete collection with the twig template.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1280 9 years ago
Archive · by Muut Archive, 9 years ago
2 888 9 years ago
Archive · by Muut Archive, 9 years ago
2 4018 9 years ago
Archive · by Muut Archive, 9 years ago
1 2893 9 years ago
Archive · by Muut Archive, 9 years ago
3 1077 9 years ago