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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.