Getting a list of all subpages

Author Message

Raul R

Monday 27 October 2008 6:02:26 pm

Hello,

I am new to EZPublish and am currently using 3.9. My question is that I have an extension which needs retrieve the article content. I am using eZFunctionHandler::execute('content', list, $params) for this. What I noticed is that it only fetches the 1rst page. What I cannot seem to find is documentation on how to retrieve the other pages or know how many pages are part of that article. I have the node ID for that article but it escapes me how I can use that as a pointer to the subpages.

Can someone please point out where I can find this info or provide some sample code?

Thanks,

Dot Mundo

Yannick Komotir

Tuesday 28 October 2008 1:47:37 am

static eZContentObjectTreeNode::fetch ( $ nodeID)

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

zurgutt -

Tuesday 28 October 2008 3:24:34 am

Im guessing you have multipage articles and in this case subpages are children of main page.

content list only gives you one level, main pages. You have to run it again with article main page id as root to get subpages under it.

Certified eZ developer looking for projects.
zurgutt at gg.ee

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 18 2025 18:38:04
Script start
Timing: Jan 18 2025 18:38:04
Module start 'layout'
Timing: Jan 18 2025 18:38:04
Module start 'content'
Timing: Jan 18 2025 18:38:05
Module end 'content'
Timing: Jan 18 2025 18:38:05
Script end

Main resources:

Total runtime0.6884 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 587.9141152.6250
Module start 'layout' 0.00690.0030 740.539139.4453
Module start 'content' 0.00990.6773 779.9844570.4141
Module end 'content' 0.68730.0011 1,350.398412.1641
Script end 0.6884  1,362.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5213160.0002
Check MTime0.00140.2043160.0001
Mysql Total
Database connection0.00140.203510.0014
Mysqli_queries0.642793.3602590.0109
Looping result0.00050.0773570.0000
Template Total0.660495.920.3302
Template load0.00210.300820.0010
Template processing0.658395.624420.3291
Template load and register function0.00010.015110.0001
states
state_id_array0.00070.101710.0007
state_identifier_array0.00070.095620.0003
Override
Cache load0.00160.2356150.0001
Sytem overhead
Fetch class attribute can translate value0.00040.056330.0001
Fetch class attribute name0.00140.198450.0003
XML
Image XML parsing0.00120.174630.0004
class_abstraction
Instantiating content class attribute0.00000.002550.0000
General
dbfile0.00100.1492230.0000
String conversion0.00000.000940.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs