We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32393
    • 29 Posts
    Hi,

    How can I show less page links when using Ditto pagination?

    Now it shows:

    1, 2, 3, 4, 5, 6, 7, 8 Next

    But I want it to show no more than 5 page links at a time, like:

    1, 2, 3, 4, 5 Next
      • 23571
      • 223 Posts
      Use &total=`` in your Ditto call to limit the total number of posts that will be displayed.
        • 32393
        • 29 Posts
        Thank you, that will work for now. But, is there a way to make it so it shows 5 links, then when you get to the 5th link, it shows the next 5?

        Ex:

        1, 2, 3, 4, 5 NEXT

        then, once you hit page 5:

        PREVIOUS 5, 6, 7, 8, 9 NEXT

        by using total=5, it only displays 5 page links, which is great, but when you get to page 5, thats all you get.
          • 26931
          • 2,314 Posts
          Thank you, that will work for now. But, is there a way to make it so it shows 5 links, then when you get to the 5th link, it shows the next 5?
          you can use the "splitPagination" Snippet for this: http://modxcms.com/extras/package/97
            • 32393
            • 29 Posts
            Thanks, I’ll check that snippet out.

            I don’t have many pages right now so I can’t tell... without using the splitpagination snippet, does ditto have a limit to the number of page links it will show, if so how many is it? 10 or 20?

            Thanks again!