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

Related Pages: multiple pages in collection

Started by Muut Archive 10 years ago · 2 replies · 451 views
10 years ago

Hi,

I have child pages under two different parent pages. I'd like to receive related posts from both of these parent's children. @page: /mother or @page: /father limits me to only one parent, @self.siblings gives me posts only under the active parent, and @root isn't supported. Is there any way to add multiple pages in the collection?

Cheers,
Eetu

10 years ago

Actually I thing @root will work as that was added to collections after relatedpages plugin readme was written. However, if it's not (untested) you should be able to use @taxonomy

10 years ago

I already tried @root yesterday without luck, but gave it another try now and got it work! The mistake I made earlier was using @root.children, but actually @root.descendants was required. Thanks for the guiding!

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1368 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago