How to move a page programmically - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

How to move a page programmically

  • How to move a page programmically
  • 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?

     

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