Forums / Setup & design / Fetching nodes with the same grandparent

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Fetching nodes with the same grandparent

Author Message

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,....)

Lars Arne Brekken

Tuesday 08 July 2003 6:57:18 am

Thanks, that worked!

Does 0 mean of infinite depth?

Lars