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.

eZ debug

Timing: Jan 19 2025 00:20:00
Script start
Timing: Jan 19 2025 00:20:00
Module start 'layout'
Timing: Jan 19 2025 00:20:00
Module start 'content'
Timing: Jan 19 2025 00:20:02
Module end 'content'
Timing: Jan 19 2025 00:20:02
Script end

Main resources:

Total runtime1.6554 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 593.1094152.6250
Module start 'layout' 0.00660.0059 745.734439.4453
Module start 'content' 0.01251.6415 785.1797407.9531
Module end 'content' 1.65400.0014 1,193.13288.1641
Script end 1.6554  1,201.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.2281160.0002
Check MTime0.00160.0986160.0001
Mysql Total
Database connection0.00160.093710.0016
Mysqli_queries1.602896.8239460.0348
Looping result0.00060.0340440.0000
Template Total1.502290.720.7511
Template load0.00270.164420.0014
Template processing1.499490.577120.7497
Template load and register function0.00030.016310.0003
states
state_id_array0.01070.644810.0107
state_identifier_array0.00360.218020.0018
Override
Cache load0.00220.1355270.0001
Sytem overhead
Fetch class attribute can translate value0.00110.067810.0011
Fetch class attribute name0.00080.048810.0008
XML
Image XML parsing0.00020.009410.0002
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00080.0460100.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs