On 05/13/2010 10:19 AM, S.L wrote:
>
> Hi all,
>
> I have a page "Child" in with Space A(A.Child), with parent "A.Main".
>
> Now I would like to copy this page to Space B, so it becomes "B.Child with
> parent "B.Main".
> But when I copy page using copy function in UI or using
> "xwiki.xWiki.copyDocument",  "B.Child" 's parent  is always "A.Main".
>
> What could I do to acheive my expected result, "B.Main"? Since I would like
> to use marco to copy multiple pages, I hope I could find a solution besides
> manually modifying the pages.
>
> Thank you so much for you help!

You can leave out the space from the parent, as in "Main". This will 
always resolve to the "Main" document in the current space, thus A.Main 
when the document is in the space A, B.Main when in space B.

-- 
Sergiu Dumitriu
http://purl.org/net/sergiu/
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to