Wednesday 24 August 2011 7:27:51 am - 3 replies
Modified on Wednesday 24 August 2011 7:29:28 am by Albert Calmus
Håvard Bergersen
Wednesday 24 August 2011 7:42:54 am
Is is the sorting that doesn't work, or does the whole fetch break?
Looks like you have a comma to much: 'old_item/creation_date'), <-
(Don't know if this i enough to break it but, worth a shot?)
EDIT:
I don't think you can sort on two different classes....?
Edi Modrić
Wednesday 24 August 2011 7:57:00 am
Havard is right, you cannot use attribute sorting if your fetch returns objects of multiple classes.
eZ Publish certified developer http://ez.no/certification/verify/350658
Tyler Harms
Wednesday 24 August 2011 9:59:35 am
Instead have you tried using the .sortarray?
'sort_by', $your_node_parent.sort_array
That way the admin can control how items are sorted.
You must be logged in to post messages in this topic!