For alexmglover and other readers of this thread,
I spent a long time trying to get Ditto’s &tplPaginateNext and &tplPaginatePrevious to work. I wanted to substitute words for the default "Next" and "Previous" that would make more sense in a list of future events sorted on my own Date template variable. Yet I didn’t want to overwrite the default words in the language file.
Let me save hours of experimenting. As Alik suggests, create named Chunks for these Ditto parameters. I never was able to make the inline alternative work properly:
&tplPaginateNext= `@CODE <a href="[+url+]">Later</a>`
&tplPaginatePrevious= `@CODE <a href="[+url+]">Sooner</a>`
The Chunks work properly with no fuss, and they match the code you would find by tracing Ditto’s operation and looking at the HTML that Ditto emits.
Please post if you figure out how to make parameters &tplPaginateNextOff and &tplPaginatePreviousOff work. If you refer to Ditto documentation at
http://ditto.modxcms.com/files/snippet-ditto-php.html#tplPaginateNextOff,
you’ll find that these closely related parameters are described quite differently from one another, which adds to the confusion. I gave up trying to use them and instead simply suppressed the vestigial "Next" and "Previous" as follows:
&paginateAlwaysShowLinks= `0`
Regards,
Halfnium