This script will clone a page and place it under a different parent page.
Code Block |
---|
language | java |
---|
linenumbers | true |
---|
|
number source = getPage("CTR", "Clone a page"); //page to clone
number newParent = getPage("CTR", "Home"); //parent for the cloned page
//clones page tree, adds "Copy of " to the begining of new page titles, and copys permissions of source
//sample syntax - clonePage(pageId, parentId, title)
number clone = clonePageTree(source, newParent, "Copy of ", true) |
See Other Recipes
Filter by label (Content by label) |
---|
showLabels | false |
---|
showSpace | false |
---|
cql | label = "pages" |
---|
|
See More Documentation
Filter by label (Content by label) |
---|
showLabels | false |
---|
showSpace | false |
---|
cql | label = "page_routines" |
---|
|