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.
>   

_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to