getChildPages
Syntax | getChildPages(parentId) | Package | |
Alias | Pkg Usage |
Description
Get the list of child pages (direct children) for a selected page.
Parameters
Parameter name | Type | Required | Description |
|---|---|---|---|
parent ID | Number | Yes | ID of the selected page for which to direct child pages need to be retrieved. |
Return Type
Number []
Ids of the child pages for the selected page.
Example
number [] children = getChildPages(11801);
for(number childPage in children) {
%childPage%.labels += "newLabel";
}