From version < 2.1 >
edited by Guillaume Delhumeau
on 2016/02/15
To version < 1.4 >
edited by Guillaume Delhumeau
on 2016/02/15
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -13,11 +13,5 @@
13 13  In the previous example, the solution was to put manually the parent of all pages of the ##Proposal## space that had ##Main.WebHome## as parent, to ##Proposal.WebHome##. The following script have been used to migrate (ex: http://design.xwiki.org/):
14 14  
15 15  {{code language="velocity"}}
16 -#set ($xwql = "where doc.space in ('Proposal', 'Design', 'Improvements') and doc.parent = 'Main.WebHome'")
17 -#foreach($r in $services.query.xwql($xwql).execute())
18 - #set ($d = $xwiki.getDocument($r))
19 - #set ($discard = $d.setParent('Proposal.WebHome'))
20 - #set ($discard = $d.save())
21 - * $r updated
22 -#end
16 +
23 23  {{/code}}

Get Connected