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

Adding multiple collections through blueprint?

Started by Muut Archive 10 years ago · 1 replies · 350 views
10 years ago

How would I make this dynamic with blueprints? https://learn.getgrav.org/content/collections#multiple-collections

YAML
content:
    items: @self.children
    order:
        by: date
        dir: desc
    limit: 10
    pagination: true

fruit:
    items:
       '@taxonomy.tag': [fruit]

For example, I have a modular.yaml file and want to be able to add blog posts from an external collection and portfolio items from an external collection.

The example in the docs are

YAML
content:
    items:
      '@page.children': '/blog'
10 years ago

I'm not sure form your question which bits you are looking to make dynamic?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1350 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2947 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago