Forums / Developer / Fetch on main location node?

"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".

Fetch on main location node?

Author Message

Phi Hoang

Tuesday 25 November 2003 12:29:30 am

Hi,
Here is a data structure:

Root folder ----> Books Folder -----> Computers & Internet
| |----> Book Title A (main location)
|----> History
| |----> Book Title B (main location)
| |----> Book Tilte C (main location)
|----> Travel
| |----> Book Title B (reference location)

Node ID of "Books Folder" is 50.
When I use fetch command:

{let NewBooks=fetch( 'content', 'list', hash('parent_node_id', 50, limit, 5, 'depth', 2, 'sort_by', array('published', false())))}
-> Result of "NewBooks":
Book Title A
Book Title B
Book Title B
Book Title C

So, What must I do to have result:
Book Title A
Book Title B
Book Title C

(only fetch main location node)

Thanks,
Phi