Multiple Collections

Hi there,

Grave allow Multiple Collections, i wanna define my own collection. I defined it within a page header. does it also need to be defined in yaml file? i have no idea where to define the yaml file. Could you help for this, thank you

I have problem to access the custom collection which i defined in page header. So i have doubt that does i need to defined it in yaml file.
my code to access just like this:
{% set fruit_collection = page.collection(‘fruit’) %}
{% for child in page.fruit_collection %}
{{ child.url }}
{% endfor %}

Hi,

I would say:

{% for child in fruitcollection %}

Your fruitcollection is already a page object.

It works now, thank you