Versions Compared

Key

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

This script will copy the content of a pageĀ into another page.

Code Block
languagejava
linenumberstrue
number source = getPage("CTR", "Copy a page"); //page to copy
number newParent = getPage("CTR", "New copy a page"); //destination for the copied page content

//sample syntax - copyPageContent(sourcePageId, targetPageId);

return copyPageContent(source, newParent);


See Other Recipes

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "pages"

See More Documentation

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "page_routines"