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

Make frontpage aggregate from two sub-page page.collections

Started by Muut Archive 9 years ago · 3 replies · 391 views
9 years ago

Hello, I have successfully created two different page.collections from the subpages '/podcasts' and '/places' - which individually works as two different blogs within my blog. What I mean is, that I update both of these parts of my website as I would update a blog. When I go to /podcasts the page shows all posts within this section, just like a normal blog - the same goes for /places.

However, I would like to make the front page of my website show posts from /podcasts and /places only. The front page is located in the /home part of the website, and it is the alias for home. I have tried using @root.children, @page.children ets under items - without any luck

Can anyone help me, please?

Thanks.

9 years ago

You can create a single collection from multiple query types. Check out the collection docs.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1332 9 years ago
Archive · by Muut Archive, 9 years ago
2 923 9 years ago
Archive · by Muut Archive, 9 years ago
2 4052 9 years ago
Archive · by Muut Archive, 9 years ago
1 2930 9 years ago
Archive · by Muut Archive, 9 years ago
3 1109 9 years ago