Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

How does the new multiple collections feature work?

Started by Muut Archive 11 years ago · 1 replies · 417 views
11 years ago

I read in the Changelog for 0.9.42 that Grav now supports multiple collections. But there seems not yet any documentation how this is supposed to work. Any hints would be appreciated as this would be a useful feature.

11 years ago

On your page where you are defining the content items collections (ie blog list view) you can simply add another, for example:

YAML
content:
    items: 
        @taxonomy.category: blog
        @self.modular: true

This will add all pages with taxonomy category: blog and also the modular child pages to the collection.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2280 9 years ago
Archive · by Muut Archive, 9 years ago
2 1496 9 years ago
Archive · by Muut Archive, 9 years ago
2 4745 9 years ago
Archive · by Muut Archive, 9 years ago
1 3561 9 years ago
Archive · by Muut Archive, 9 years ago
3 1621 9 years ago