I have a Ditto call that fetches a set of documents as follows:
[!Ditto? &documents=`244,243,61,113,197` &tpl=`rotatorContentBlock` !]
The returned set of documents is sorted by document id by default.
Is there a way to inhibit sorting, so that the document set returned is in the order specified in the documents parameter, from left to right? So for example, the above ditto call would return a set with 244 being the first, 243 second, and the last document being 197.
Many thanks.
-Mike
Evo 1.0.3
Ditto 2.1.0
lo9on.com
MODx Evolution/Revolution | Remote Desktop Training | Development
Too bad nobody could post a simple solution :’(
After a day’s worth of experimentation hacking the snippet, I couldn’t find a practical way of getting this seemingly simple functionality to work. Every time I succeeded at circumventing document ordering, another class method would find a way of reordering them. It was maddening.
Anyway, off to the next task at hand.
- Mike
lo9on.com
MODx Evolution/Revolution | Remote Desktop Training | Development
Great catch! I troweled a few boards looking for a solution, but I should have searched the entire forum
lo9on.com
MODx Evolution/Revolution | Remote Desktop Training | Development
I just looked in the modx_site_content table and used the menuindex column to sort...
&orderBy=`menuindex ASC`