This script will clone a page and place it under a different parent page.
number source = getPage("CTR", "Clone a page"); //page to clone number newParent = getPage("CTR", "Home"); //parent for the cloned page number clone = clonePage(source, newParent, source.title + " (Cloned)"); //clone page and get id
See Also
-
getChildPages (Power Scripts™ for Confluence)
-
deletePage (Power Scripts™ for Confluence)
-
getPages (Power Scripts™ for Confluence)
-
createPage (Power Scripts™ for Confluence)
-
countPages (Power Scripts™ for Confluence)
-
selectPages (Power Scripts™ for Confluence)
-
copyPageContent (Power Scripts™ for Confluence)
-
getPageURL (Power Scripts™ for Confluence)
-
getPage (Power Scripts™ for Confluence)
-
clonePageTree (Power Scripts™ for Confluence)
-
deletePageTree (Power Scripts™ for Confluence)
-
movePage (Power Scripts™ for Confluence)
-
clonePage (Power Scripts™ for Confluence)
-
pageExists (Power Scripts™ for Confluence)