Hello there,
i have a Problem using the pagination plugin. I did everything as described at the github-page. I’m using the pagination inside a modular page. The definition of the collection is also made in the .md-file of the modular page.
—markup
content:
items:
’@taxonomy.category’: blogitem
order:
by: date
dir: desc
pagination: true
limit: 3
pagination: ‘true’
While debugging i could see there are entries in my collection. I can see the entries on my page. The limitation works fine as well, but at the end of the page there is no pagination. =/ Pagination only shows up, when I made following changes:
---markup
content:
items:
'@taxonomy.category': blogitem
order:
by: date
dir: desc
pagination: 'true'
limit: 3
pagination: 'true'
But it’s still not working. there are no clickable links - just grey icons. I implemented the pagination like this:
—twig
{% set settings = {} %}
{% set collection = page.collection() %}
{% if header.bloglist %}
{% set settings = header.bloglist %}
{% endif %}
{% if page.header.bloglist %}
{% set settings = settings|merge(page.header.bloglist) %}
{% endif %}
{% if config.plugins.pagination.enabled and collection.params.pagination %}
{% include 'partials/pagination.html.twig' with {'base_url':page.url, 'pagination':collection.params.pagination} %}
{% endif %}
</div>
Regards,