Tuesday 15 September 2009 1:04:40 am
Good morning,
I'm trying to fetch a list of (reverse related) nodes sorted on a specific attribute. Because the option 'reverse_related_objects' does not support the sort_by attribute, I thought to follow the proces below:
1) Fetch array of node_ids using fetch('content','reverse_related_objects_ids'); 2) Fetch array of nodes with the above node_ids, sorted on the attribute. Step 2 doesn't seem to be possible in EZ, though. It's either getting the data of a node with one specific node_id or getting an array of nodes belonging to a specific parent_node_id.
So, my questions are:
a) is it possible to fetch an array of reverse_related_objects sorted by a specific attribute (my preferred method that does not seem to work (but maybe I'm missing something)); b) if not, is it possible to fetch an array of nodes using an array of node_ids? TIA, Vivienne
|