I would like to be able to get document content from other pages, line by line, section by section. I am currently able to get the full document using the following code:
#set ($xwql = "where doc.space like 'my space%'")
#foreach ($item in $services.query.xwql($xwql).execute())
===**[[$item]]**===
#set($document = $xwiki.getDocument($item))
$document.getContent()
#end
By including/excluding specific sections, I’m looking to replicate the behavior of the “include page” macro which has a feature of only retrieving specific sections.
Any suggestions?
2 posts - 2 participants