Forums / Setup & design / Fetching nodes with the same grandparent
Lars Arne Brekken
Tuesday 08 July 2003 6:18:59 am
I have organized employees in three different folders (their department):
Department 1 >Employee A>Employee B
Department 2>Employee C
Department 3>Employee D
On my page I want to show all the employees, regardless of their department.
I know that if I wanted to sort by department I could do three fetches, but I want to list all the employees sorted by their last name.
I tried to do like this: hash(parent_node_id,array(1,2,3),....) but that didn't work.
How can I do it?
Lars
Selmah Maxim
Tuesday 08 July 2003 6:53:53 am
try :
hash(parent_node_id,$node.node_id,depth,0,....)
Tuesday 08 July 2003 6:57:18 am
Thanks, that worked!
Does 0 mean of infinite depth?