You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably a misunderstanding on my part, but I can't see the difference between what the chunk modifier does using that example and the code example here.
The only thing I can see that's missing is documentation around chunk_key.
They look similar, but they are slightly different.
One lets you chunk items in an array, and the other lets you chunk items from a query builder (which is what you're dealing with in the {{ collection }} tag).
We probably need to add an example of the chunk parameter to the collection/taxonomy tag docs.
Applies to the collection tag but also could be assets fields etc.
For statamic/cms#9157
Dumping stuff I tested with:
Where
{{ field }}
is either{{ collection:some_collection }}
or{{ some_query_builder }}
(like an assets fields).chunked_count
is a way to count items across chunks ascount
in a chunk would only go 1-2-3-1-2-3-1-2-3...The text was updated successfully, but these errors were encountered: