Hi mark, What you are doing doesn't look wrong.. It seems to me it should work. getRenderedContent() is the most recursive API. The page is fully rendered (velocity, groovy and radeox) in the context of the included page. So objects should be rendered properly and other includes should also be done (classsheet and so on). Do you have and exemple of the page + sheet that fails ? Ludovic [email protected] a écrit :
Hi Again.
I know it is bad form to reply to your own post, but this is what I am thinking so far.
Unfortunately I can't see how to display the included pages object information with the template page.
End result : Repeated empty templates
<< Snip
## Set the list of pages to be included #set($pages = ["WebSpace.Page1", "WebSpace.Page2", "WebSpace.Page3"])
## Create the macro to display all the included pages with their object information rather than just the template ## Note : Move it to somewhere later we can use it rather than inline #macro( includePage $pagelist ) #foreach( $page in $pagelist )
#set($displaypage = $xwiki.getDocument($page)) $displaypage.getRenderedContent()
#end #end
## Run the macro #includePage($pages)
End Snip>>
Thanks in advance.
Cheers,
Mark Robinson
------------------------------------------------------------------------
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Ludovic Dubost XPertNet: http://www.xpertnet.fr/ Blog: http://www.ludovic.org/blog/ XWiki: http://www.xwiki.com Skype: ldubost AIM: nvludo Yahoo: ludovic