On Mar 14, 2007, at 12:27 AM, Sergiu Dumitriu wrote:



On 3/14/07, Ludovic Dubost <ludovic@xwiki.com> wrote:

One easy way to handle this is to create a page which includes the
childrens using #includeTopic("pagename")

You could add the following script at the end of your parent page

#if($context.action=="pdf")
#set($sql = "where doc.parent='$doc.fullName'")
#foreach($item in $xwiki.searchDocuments($sql))
#includeTopic($item)
#end
#end

Ludovic


Nice. You could put this on xwiki.org FAQs list.

I would also put this in the Code snippet zone.

-Vincent