This script will create new child pages from a list of titles.
Code Block |
---|
language | java |
---|
linenumbers | true |
---|
|
number parent = getPage("CTR", "Create child pages from a list"); //page to clone
//list of page titles to create
string [] titles = "Page A|Page B|Page C|Page D|Page E|Page F";
//loop through page titles
for(string title in titles) {
//create pages
//sample syntax - createPage(spaceKey, parentId, pageTitle, pageContent)
number newPage = createPage("CTR", parent, title, "");
} |
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" |
---|
|