Last modified by Mohamed Boussaa on 2023/03/02

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

Summary

Details

Page properties
Content
... ... @@ -13,6 +13,12 @@
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 -
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
17 17  {{/code}}
18 18  

Get Connected