Versions Compared

Key

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

...

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

//clonesclone page and treeget id, adds "Copy of Cloned" to the beginingend of new page titles, and copys permissions of source
the title
//sample syntax - clonePage(pageId, parentId, title)
 
number clone = clonePageTreeclonePage(source, newParent, "Copy ofsource.title + ", true)(Cloned)"); 


See Other Recipes

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

...