Closed tcherokee closed 6 years ago
Is there a way to use the plugin with the {% paginate %} tag? So something like this
{% paginate craft.entryCount.entries.all() as pageInfo, entries %}
I tried this tag, but got this error
Argument 1 passed to craft\helpers\Template::paginateCriteria() must implement interface craft\elements\db\ElementQueryInterface, array given
Try it without the .all() at the end.
That worked :)
Great!
Is there a way to use the plugin with the {% paginate %} tag? So something like this
{% paginate craft.entryCount.entries.all() as pageInfo, entries %}
I tried this tag, but got this error
Argument 1 passed to craft\helpers\Template::paginateCriteria() must implement interface craft\elements\db\ElementQueryInterface, array given