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

How does the new multiple collections feature work?

Started by Muut Archive 11 years ago · 1 replies · 333 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 1338 9 years ago
Archive · by Muut Archive, 9 years ago
2 927 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2941 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago