Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This script will clone a page and place it under a different parent page.

Code Block
languagejava
linenumberstrue
number source = getPage("CTR", "Clone a page"); //page to clone
number newParent = getPage("CTR", "Home"); //parent for the cloned page


clonePage(source, newParent, source.title + " (Cloned)";