Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Pagination arguments in page url generation

Started by Muut Archive 10 years ago · 2 replies · 441 views
10 years ago

Hi all,
In the following code snippet of pagination plugin not working with 'and collection.params.pagination'. When i remove this, pagination works.

{# Render the pagination list #}
{% if config.plugins.pagination.enabled and collection.params.pagination %}
{% include 'partials/pagination.html.twig' with {'base_url':page.url, 'pagination':collection.params.pagination} %}
{% endif %}

What I'm missing to add in this snippet?

10 years ago

Thanks for reply. I hope you are asking in Markdown page, if it is, I enabled in default.md as follows -
content:
items: '@self.children'
order:
by: header.modified
dir: desc
pagination: true
limit: 30

TXT

Thanks

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1362 9 years ago
Archive · by Muut Archive, 9 years ago
2 939 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2959 9 years ago
Archive · by Muut Archive, 9 years ago
3 1123 9 years ago