Hi all,
I have a problem with the parent child relationships.
The problem has allready been an issue (see detailed information
below) and a solution has been given by Sergiu Dumitriu, but this
solution does not seem to work for me.
Whenever I leave out the space from the parent, my child has no
parents at all anymore, it does not automatically get parents
assigned.
Basicly what I want to do is set up mutliple spaces, where some pages
are used in more than only one space. I want that the users stay in
their respective space, but see the pages form other spaces sometimes.
What works great for this is the include macro, but the bigger my wiki
gets, the more includes I have and this might get a bit chaotic in the
future. A much cleaner solution would be to just link from one
Space.Page to another, but when I do this my breadcrumb navigation
does not follow, since I have the Parent Child issue unsolved.
I know it must work, I just dont know how to get it to work.
Any help would be greatly appreciated.
Greetings,
Wouter
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
from:
http://lists.xwiki.org/pipermail/users/2010-May/020659.html