+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to move a page programmically

How to move a page programmically

2 posts, 0 answered
  1. Arto
    Arto avatar
    6 posts
    Registered:
    10 Mar 2014
    25 Jun 2015
    Link to this post

    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?

     

  2. Arto
    Arto avatar
    6 posts
    Registered:
    10 Mar 2014
    25 Aug 2015
    Link to this post

    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....

2 posts, 0 answered