Syntax
getChildPages(parentId)
Description
Get the list of child pages (direct children) for a selected page.Parameters
Parameter name | Type | Required | Description |
---|---|---|---|
parent ID | string | yes | ID of the selected page for which to retrieve child pages. |
Return type
number []
Ids of the child pages for the selected page.
Example
Example 1
number [] children = getChildPages(11801); for(number childPage in children) { %childPage%.labels += "newLabel"; }
See also