ideas
ideas copied to clipboard
Reintroduce wrap param on collection:next tag
trafficstars
Compared to Statamic v2, Statamic v3 does not offer a default wrap parameter to easily get the first items if you are at the end of the collection.
Based on the Statamic v2 Collection:Next Tag documentation :
wrap boolean false
When set to true, this tag will wrap around to the other end of the list. In scenarios where there wouldn’t be a next entry, the first entry will be returned.
References :
- https://statamic.dev/tags/collection-next#parameters
- https://v2.statamic.com/tags/collection-next#parameters