I’ve got a ditto call that uses a set of links(name, category, date, etc) to change the order of the pages it’s listing. This is the URL each link has;
?ditto_sortBy=name, ?ditto_sortBy=date, etc.
That part is working fine except for the odd habit of it being ordered in reverse(from Z to A for example).
What I would like to know is if there’s additional code I can add to make the link(a second one if need be) reverse the order the ditto call is organized(change Z - A into A - Z).
I couldn’t find anything on the Ditto Support Site about this.
I found a solution. edited this;
?ditto_sortBy=name (orders from Z to A for some reason)
to this
?ditto_sortBy=name.az (orders from A to Z)
and it goes in the correct order now. All I need to do is make two arrow images(up and down) into the links and all should be well.
You could use sortDir=DESC/sortDir=ASC
Quote from: Wickian at Nov 25, 2009, 06:26 PM
Quote from: mrhaw at Nov 25, 2009, 04:05 PM
You could use sortDir=DESC/sortDir=ASC
Would it be formatted like this?
?ditto_sortBy=name?sortDir=DESC
No, but like this:
?ditto_sortBy=name&ditto_sortDir=DESC
//Ditto has its own
forum forum board:
http://modxcms.com/forums/index.php/board,180.0.html
Alright, thank you for the assistance and heads up on that other forum.