grav-plugin-pagination icon indicating copy to clipboard operation
grav-plugin-pagination copied to clipboard

Plugin ignore twig syntax 'pagination':true

Open greatdesign opened this issue 3 years ago • 0 comments

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.

greatdesign avatar Aug 18 '20 08:08 greatdesign