Template.getChildren (Method)
Returns zero or more structures, each containing information about pages that are derived from a template. Structure members include the template's description, file name, title, as well as information on the template's children.
Returns:
Templates_GetChildren_Result (query)
Each row of the returned query results has the following fields:
Field Name | Type | Description |
---|---|---|
Description | PlainText_NonNull | A template's description. |
FileName | Filename | The page's file name. |
IconPath | ServerRelativeURL_EmptyString | A server-relative URL to an icon representing page or document's type. |
IconText | PlainText | Text describing the page or document's type. |
PageID | PageID | A page's ID. |
PageType | PageType | An integer specifying the page type; or example, 0 (normal or uploaded document), 1 (template), 4 (custom element), and 6 (page set). |
SubsiteID | SubsiteID | A subsite's ID. |
SubsiteURL | SubsiteURL | The server-relative URL of the page's subsite. |
Title | PlainText_NonNull | The template's ID. |
Arguments:
Name | Type | Required | Description |
---|---|---|---|
templateID | TemplateID | Required | A template's ID. |
Context:
License Requirements | None |
Permission Requirements | ContributorOrServerCode |
Deny Context | None |
Require Context | None |
Author Lock | (not required) |
Transaction Logging | Transaction logging is disabled for this method |
Customization | Customization is not supported for this method. |
Error Codes:
None
Notes:
None