We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

use modifier on collection count

alex October 28, 2020 by alex

im on statamic v2 and would like to manipulate my collection count outside of the loop. I search and read the docs but couldn't find a solution. e.g. for a list this works:

{{ collectionpreview_images | count | divide:4 | ceil }}

This won't work for a collection:

{{ collection:count :in="previews" | mod:3 }}

Is this somehow possible on collections aswell?

Thanks Alex

Answered by alex!
>>>>>>> Answered <<<<<<<
2 Replies