getgrav / grav-plugin-pagination

Grav Pagination Plugin
https://getgrav.org
MIT License
27 stars 20 forks source link

Plugin ignore twig syntax 'pagination':true #46

Open greatdesign opened 4 years ago

greatdesign commented 4 years ago

The plugin checks for pagination variable directly and ignores the twig syntax: if ($page && ($page->value('header.content.pagination') || $page->value('header.pagination'))) {

So if you have something like that in a twig template: {% set options = { items: {'@page.children': '/blog'}, 'limit':5, 'pagination':true, 'order': {'by': 'date', 'dir': 'desc'} } %} it will ignore the option 'pagination':true and plugin won't work! If someone could suggest a solution it would be great.