Quantcast
Channel: XWiki Forum - Latest topics
Viewing all articles
Browse latest Browse all 1369

Get document line by line, excluding specific sections

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 1369

Trending Articles