Quote from: Mark at Mar 27, 2007, 06:53 PM
Please download a copy from my signature and try it.
Mark:
(1) SETUP
I installed Ditto r1403 under MODx 0.9.6-RC2.
I created a parent document at ID=62.
I created ten child documents, titled "1" to "10".
(2) TEST-1
This Ditto call produces the expected results:
[!Ditto_r1403? &ditto_base=`assets/snippets/ditto_r1403/` &parents=`62` &display=`5` &paginate=`1` &debug=`1` !]
(3) TEST-2
Adding an acsending sort to test 1 produces the expected result on page 1, but on page 2 the list is empty, even though the paging placeholders say that items 6 through 10 are being displayed. Here’s the call:
[!Ditto_r1403? &ditto_base=`assets/snippets/ditto_r1403/` &parents=`62` &display=`5` &paginate=`1` &sortDir=`ASC` &debug=`1` !]
(4) TEST-3
Adding @start to test 1 causes items to be cut from the BOTTOM of the list. E.g. @start=`2` will cause documents "10" to "6" to be displayed on page 1, and documents "5" to "3" to be displayed on page 2. Isn’t @start supposed to cut from the TOP of the list? Here’s the call:
[!Ditto_r1403? &ditto_base=`assets/snippets/ditto_r1403/` &parents=`62` &display=`5` &paginate=`1` &start=`2` &debug=`1` !]
Debug files attached.
What do you think?