How to move a page programmically

Posted by Community Admin on 04-Aug-2018 14:57

How to move a page programmically

All Replies

Posted by Community Admin on 25-Jun-2015 00:00

I want to move a page under a new parent page in code, but I'm unable to find any documentation about the subject.

 There's PageManager.MovePageNode but it seems to be made only for reordering items under one PageNode.

The only way I got to work seems to be setting PageNode's ParentID -property to new parent pages guid value. Is this the recommeded way?

 

Posted by Community Admin on 25-Aug-2015 00:00

Answering myself: There's also ChangeParent in PageManager, missed it somehow. :-)

 It's BTW a bit weird that stuff like this isn't really documented anywhere, didn't find anything on this in the Pages section in documentation....

This thread is closed