Page.getParentTemplates (Method)

Returns one or more structures, each containing information about pages or templates related to a page's template hierarchy.

Returns:

GetParentTemplates_Result (query)

Each row of the returned query results has the following fields:

Field Name Type Description
Description PlainText The template's description.
FileName PlainText_NonNull The module's file name. This name does not include directory information.
IconPath ServerRelativeURL_EmptyString A server-relative URL to an icon representing the type of page or document.
IconText PlainText Text describing the page or document's type.
ID TemplateID The template's ID.
PageType PageType An integer specifying the page type, such as 0 (normal or uploaded document), 1 (template), 4 (custom element), and 6 (page set).
SubsiteID SubsiteID The subsite's ID.
SubsiteURL SubsiteURL The server-relative URL of the template's subsite.
Title PlainText_NonNull The 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