Could you provide the Ditto and splitPagination calls you are using?
I’m so sorry Mark! Forgot to provide the call... here it is
[[Ditto? &tpl=`news_item_ext` &summarize=`22` &paginate=`1` &extenders=`request,dateFilter,cal_dateFilter` &dateSource=`createdon` &depth=`2` &hideFolders=`1` &tagData=`tags` &tagSort=`0` &tagDelimiter=`, ` &tagDisplayDelimiter=` ` &seeThruUnpub=`0` &filter=`isnews,1,2`]]
<div class="pages">
[[splitPagination? &return=`1`]]
</div>
The page is uncached ofcourse.
I would try setting the same Ditto ID on both the Ditto call itself and the splitPagination snippet.
Mark, I’ve added ids to both Ditto and splitPagination calls like this:
[[Ditto? &tpl=`news_item_ext` &summarize=`22` &paginate=`1` &extenders=`request,dateFilter,cal_dateFilter` &dateSource=`createdon` &depth=`2` &hideFolders=`1` &tagData=`tags` &tagSort=`0` &tagDelimiter=`, ` &tagDisplayDelimiter=` ` &seeThruUnpub=`0` &filter=`isnews,1,2` &id=`main`]]
<div class="pages">
[[splitPagination? &return=`1` &id=`main`]]
</div>
And it didn’t help
Try setting both calls to uncached, even if it is on an uncached page. Also, try removing all the Ditto parameters and if it works, add them back in one at a time until it breaks.
Done, Mark. My Ditto and splitP calls been changed to this:
[!Ditto? &_tpl=`news_item_ext` &summarize=`22` &_display=`all` &paginate=`1` &_extenders=`request,dateFilter,cal_dateFilter` &_dateSource=`createdon` &_depth=`2` &_hideFolders=`1` &_tagData=`tags` &_tagSort=`0` &_tagDelimiter=`, ` &_tagDisplayDelimiter=` ` &_seeThruUnpub=`0` &f_ilter=`isnews,1,2`!]
<div class="pages">
[!splitPagination? &return=`1`!]
.... also I disabled phx
still no effect
-
MODX Staff
- 12,272 Posts
yentsun, I’m seeing a lot of underscores in your parameters, mostly after the ampersands but at least one in the middle of the parameter name (&f_ilter=). Are those actually there in the calls? If so I suspect that’s definitely causing problems.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Ryan, those underscores are just the way I turn off a parameter... just don’t wanna forget them all

So, in other way my calls are:
[!Ditto? &summarize=`22` &paginate=`1`!]
<div class="pages">
[!splitPagination? &return=`1`!]
and still splitPagination works incorrect
-
MODX Staff
- 12,272 Posts
You might try upgrading Ditto to version 2.1 (yes it’s the final version, just no announcement release text prepared yet) available at ditto.modxcms.com and update your calls to use the current syntax (e.g., &parents=`XX`).
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
splitPagination is exactly what I’ve been looking for, but I get strange results even after reading all this.
I am getting something like this :
< Previous 1 1,2 2,2 3,2 4,2 5,2 6,2 7,2 8,2 9,2 10,2 11,2 12,2...17 18 Next >
The "unsplitted pagination" look like this :
< Previous 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Next >
???
I have both snippet called cached on a uncached page.
Switching to uncached on cached page doesn’t work.
Turning off PHx doesn’t cut it either...
I am not running Ditto 2.1 yet... but shouldn’t it work with 2.0.3 ?
Additionnal thought : could this be implemented as a PHx custom modifier ?
Something like [+pages:splitPagination+] ?
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id