I am trying to move a collection from the page header to the twig template.
To do so I moved the definition in the header
content:
items: '@self.descendants'
filter:
type: blogpost
order:
by: date
dir: desc
limit: 3
pagination: true
to the twig template as shown in Advanced Collections
{% set options = { items: '@self.descendants', 'filter': {'type': 'blogpost'}, 'order': {'by': 'date', 'dir': 'desc'}, 'limit': 3, 'pagination': true } %}
{% set collection = page.collection(options) %}
But for some reason the pagination doesn't show up this way unless I specify it in the header again.
content:
pagination: true;
Any hints on what I am doing wrong?