I just spent asome time trying to figure out why the pagination links weren’t working. I was able to generate the links successfully, and they did indeed change the url appropriately when I clicked on them, but no matter which page link I clicked on, it always gave me the first page of results, no matter what the url said. I couldn’t get page 2 or 3 or anything else.
I got into the code in ditto.class.inc.php and after some troubleshooting I realized that the variable was not being passed from the URL to the code. The value of $start was always 0.
So I added these lines of code to the source, which made it work:
if (ereg("start=", $_SERVER['REQUEST_URI']))
{
$start1 = split("start=", $_SERVER['REQUEST_URI']);
$start = $start1[1];
}
I have no idea why that was necessary. I had a similar problem with another snippet, and now I think I’ll be able to solve it the same way. I haven’t seen any other posts in the discussion forum about this, so there is likely something in the way that my MODx is configured or hacked, but the code that I used is simple, and I don’t think it would break it for anyone else. Is there a chance this (or something like it) can be included in future releases? (Please? ... so I don’t have to add it to every new release?)