Hi there,
I have a situation where I need to select “pages” by some properties. I’ve created a Taxonomy for them, Field, Municipality, Organizator, Accredited. And everything seems to work, but…
There are over 800 hundred items in the folder and Grav takes quite a while to respond sometimes. How would I improve this?
Is there a way to return the collection by pages? I’ve tried using limit, but it seems Grav only looks in the amount of pages, but doesnt return them.
My “query” example: {% set items = page.collection({'items':{'@taxonomy':{'Sritis': type, 'Savivaldybė': municipality}},'order': {'by': 'title', 'dir': 'asc'}}) %}
And with a limit, but working not the way I want: {% set options = { items: '@self.children', 'limit': 25, 'order': {'by': 'title', 'dir': 'asc'}, 'pagination': true } %} {% set items = page.collection(options) %}
Thanks in advance.