Page.getTemplateHierarchyInfo (Method)
Returns a structure containing information about the a page's template hierarchy.
Returns:
GetTemplateHierarchyInfo_Result (struct)
Each row of the returned query results has the following fields:
Field Name | Type | Description |
---|---|---|
PageType | PageType_EmptyString | An enumeration having members such as 0 (normal or uploaded document), 1 (template), 4 (custom element), and 6 (page set). |
ParentPageType | PageType_EmptyString | The module file name not including any directory information of the parent template. |
ParentTemplateFileName | Filename_EmptyString | The module's file name. This name does not include the parent template's directory information. |
ParentTemplateID | PageID_0 | The specified page or template's parent template ID. |
ParentTemplateSubsiteURL | SubsiteURL_EmptyString | The path to the subsite's parent template. |
ParentTemplateTitle | PlainText | The parent template's internal CommonSpot title. |
Arguments:
Name | Type | Required | Description |
---|---|---|---|
pageID | RealPageID_NonBaseTemplate | Required | A page'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 | This method may be customized at the site level |
Error Codes:
None
Notes:
None