New: Learn Statamic on Laracasts!

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 →

Change pagination segments length

Tim Molloy January 24, 2021 by Tim Molloy

Is there an easy way to change the length of the segments for {{ links:segments }}?

I want to create something like |1| 2 3 4 5 6 . . . 9 10 and 1 2 . . . 6 |7| 8 . . . 12 13 without having to write a bunch of template code.

The default implementation goes up to 10 pages before shortening e.g 1 2 3 4 5 6 7 8 9 10 . . . 15 and when there is the slider that is also longer than I would like.

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
1 Reply
2 Followers