Hi,

just my guess: you're changing the parent of the page, not the page location.
So the URL to access the page will be the same, even if the parent-page has been changed.

Everyone's welcome to correct me if I'm wrong.

Vito


Raffaele Viola wrote:
Hi all,

I create a page to change the parent to a chosen page using:

#set ($mydoc = $xwiki.getDocument("some.page"))

$mydoc.setParent($targetdoc)
$mydoc.save()

It works but in the tree page I see the changed page into its original tree location.

What is my fault ??

Thanks
Raffo

_______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users


-- 
Vitantonio Messa
+358 46 889 48 49 - vitantonio.messa@coss.fi
COSS - The Finnish Centre for Open Source Solutions
@ Technology Centre Hermia Ltd.
Hermiankatu 1, FIN-33720 Tampere, FINLAND