/
Move pages in bulk
Move pages in bulk
This script will move all the children of a page to another parent.
number parent = getPage("CTR", "Move pages in bulk"); //parent page number newParent = getPage("CTR", "New parent page"); //destination of moved pages number [] childPages = getChildPages(parent); //get child pages //loop through child pages for(number child in childPages) { //sample syntax - movePage(pageId, newParentPageId) movePage(child, newParent); }
See Other Recipes
See More Documentation
, multiple selections available,
Related content
copyPageChildren
copyPageChildren
More like this
movePage
More like this
Delete a page tree
Delete a page tree
More like this
movePage
movePage
More like this
Clone a page tree
Clone a page tree
More like this
Create child pages from a list
Create child pages from a list
More like this