Is it possible to get the content rendered from a velocity script and include it in another page?
The idea being that I can have one page that has the actual text, and then have that content “bubble up” onto pages where I am aggregating the data into ever larger pages “master” which contain all my data in a re/ordered fashion.
I can do this with the Include Page macro and use XDOM api calls to get individual lines, but so far I have not found a way to use XDOM to get rendered Velocity content.
Thanks.
Hi!
I’m not sure I fully understood your use case, but you might want to create a new class to contain your data. It’s straightforward from there to create pages with one object of your class on each.
And you’ll be able to use LiveData (with a LiveTable source) to aggregate all of that easily.
Either https://extensions.xwiki.org/xwiki/bin/view/Extension/Include%20Macro#HIncludingvelocitymacros
or definitely use a more detailed knowledge model with XClasses and XObjects to make it easier to access “individual lines”, which would become “properties” of your objects.
I hope that could help you 
Lucas C.