
Can I count the items in a collection, without loading the whole collection?
I've got a collection varying between 50 to 500 tasks. I want to show these tasks in a list view in the front-end on which I want to apply pagination.
So I want to know how many items I've got in total (to count the number of pages I've got), but only load the first 20.
Is this possible?
EDIT: This is now possible using the count_full_collection() expression. See this topic for more info.
I've got a collection varying between 50 to 500 tasks. I want to show these tasks in a list view in the front-end on which I want to apply pagination.
So I want to know how many items I've got in total (to count the number of pages I've got), but only load the first 20.
Is this possible?
EDIT: This is now possible using the count_full_collection() expression. See this topic for more info.
Login to reply