ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Reintroduce wrap param on collection:next tag

Open maximedaoust opened this issue 3 years ago • 0 comments
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

maximedaoust avatar May 27 '22 18:05 maximedaoust