We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 31904
    • 8 Posts
    Hi. I (temporarily) had pagination working with Ditto, and then I heard about the SplitPagination snippet and decided to give it a try. Unfortunately it didn’t work, so I deleted it and changed the Ditto call back to what it was before. Now nothing shows up when I use [+pages+], [+previous+], or [+next+]. The only information I can find about this all seems to relate to the use of PHx, which I am not using (although I did try setting the page to non-cacheable - to no avail). Can anyone help?

    My Ditto call is as follows:

    [[Ditto? &startID=`7` &tpl=`NewsTemplate` &summarize=`10` &pagination=1 &paginateAlwaysShowLinks=1]]  
    Pages: [+pages+]  
    [+previous+] | [+next+]
    


    Thanks
      • 18397
      • 3,250 Posts
      When using pagination, your Ditto call should always be uncached ala [! .
        • 31904
        • 8 Posts
        My Ditto call was uncached previously but I changed it to cached because I’ve just been trying everything I can think of to get it to work. Changing it back to uncached doesn’t appear to make any difference.
          • 18397
          • 3,250 Posts
          Minus the pagination, does the Ditto call itself work? Also, what happens when you append &start=10 to the URL?
            • 31904
            • 8 Posts
            Yes, the Ditto call works perfectly as far as I can see, other than pagination. And changing ’start’ works too, but still no pages links when it’s changed.
              • 18397
              • 3,250 Posts
              Do you have another Ditto call or Reflect call in your template? If so, try removing it and see what happens.
                • 31904
                • 8 Posts
                No, there’s just the one call, though I tried giving it an ID too, that didn’t work.
                  • 18397
                  • 3,250 Posts
                  When you gave it an id, did you prefix the modx placeholders like [+wp_pages+]?
                    • 31904
                    • 8 Posts
                    Not with ’wp_’ (should it have been ’wp_’?) - I gave it the ID ’main’ so I assumed the prefix should be ’main_’.
                      • 18397
                      • 3,250 Posts
                      It is prefixed by &id, so yes it would be main_