[xwiki-dev] Generate PDF out of multiple wiki pages

Sergiu Dumitriu sergiu.dumitriu at gmail.com
Wed Mar 14 00:27:22 CET 2007


On 3/14/07, Ludovic Dubost <ludovic at 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.

-- 
http://purl.org/net/sergiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20070314/0b296efc/attachment.htm 


More information about the devs mailing list