Skip to end of banner
Go to start of banner

Clone a page

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Next »

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 Other Recipes

See More Documentation

  • No labels