More in this section
Forums / Developing with Sitefinity / How to move a page programmically

How to move a page programmically

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
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