Hi,
for every new page that have collection inside or modules that have collection we have to setup the frontmatter like the following :
content:
items: '@self.children'
order:
by: date
dir: desc
limit: 10
pagination: true
and the code inside the page would be like :
{% for collection = page.collection() %}
{%endfor%}
My question is :
can we embed the frontmatter inside the coding / inside twig like
for example :
{% for collection = page.collection(items: '@self.children') %}
{%endfor%}
I'm not an expert with php, so I would need lots of help in this matter :)
Thanks