[xwiki-users] get content of page
Hello isn't this suppose to get the content of the each page? #foreach($sourceDoc in $xwiki.getSpaceDocsName($sourceSpace)) $contents = $xwiki.getDocument($sourceSpace.$sourceDoc) contents = $contents #end so that latter on i can set that content to another page.($pageclass.setContent($contents)) it's about copying one document from one space to another space. -- View this message in context: http://n2.nabble.com/get-content-of-page-tp3992676p3992676.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Bubulina, Bubulina wrote:
Hello isn't this suppose to get the content of the each page?
#foreach($sourceDoc in $xwiki.getSpaceDocsName($sourceSpace))
$contents = $xwiki.getDocument($sourceSpace.$sourceDoc) contents = $contents
Try using: #set($docContent = $xwiki.getDocument($sourceDocument).content) ... $anotherDocument.setContent($docContent) Hope this helps, Oana
#end
so that latter on i can set that content to another page.($pageclass.setContent($contents)) it's about copying one document from one space to another space.
participants (2)
-
Bubulina -
Oana Tabaranu