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 %}
<div class="modular-row">
<div class="content-wrapper blog-content-list" >
<div id="listing" class="pure-g h-feed">
{% for child in collection %}
{% include 'partials/blog_item.html.twig' with {'blog':page, 'page':child, 'truncate':true} %}
{% endfor %}
{% 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>
</div>
</div>
I don't get whats wrong. Can somebody help me? It seems the pagination-template requires somekind of pagination object, but there is none.
Regards,
Michael
---