[xwiki-users] Question about parent/child page
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! -- View this message in context: http://xwiki.475771.n2.nabble.com/Question-about-parent-child-page-tp5045176... Sent from the XWiki- Users mailing list archive at Nabble.com.
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/
participants (2)
-
S.L -
Sergiu Dumitriu