pers0n Posted February 2, 2012 Posted February 2, 2012 I'm having a issue, where I need to find all the artwork, but have it sort based on the artistpage, but its doing it based on the alphabetically ordering, not the actual ordering of all my artistpages, which I have dragged into a specific order. $pages->find('template=artwork, sort=artistpage'); I've checked to make sure "sort" is not set under any children for anything.
slkwrm Posted February 2, 2012 Posted February 2, 2012 I think it's expected behaviour. Here's a quote from the site: There is a reserved-word for selectors called "sort" and it may be used to specify what order should be returned by the matches. Here is an example of it's usage: sort=title That essentially says to sort the results by their "title" field, A-Z. If we want to reverse the sort, we just precede "title" with a minus sign, like this: sort=-title That would return results sorted by the "title" field, Z-A. Don't know how to make it work the way you need it though Edit: Just had to read a little further Use this: sort=sort Edit 2: Nevermind, I have to sleep more
WillyC Posted February 2, 2012 Posted February 2, 2012 person, do this.you can: $pages->find("template=artwork, sort=artistpage.sort"); 2
pers0n Posted February 3, 2012 Author Posted February 3, 2012 person, do this.you can: $pages->find("template=artwork, sort=artistpage.sort"); Thanks that worked
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now