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.