When Velocity code is part of any object which is displayed on a Page — including Containers, Templates, Widgets, and other content displayed on the Page — you may access information about the Page itself using the
$dotPageContent object, one of three built-in content objects.
This object represents the Page content object of the Page where the content is displayed, and allows you to access the properties of the Page from within your Velocity code.
The following properties are available by default for all Pages. Some of these properties may not be available if you have intentionally removed them, and additional fields will be available if you have added additional fields to the Page Content Type being accessed.
|Title||Title of the Page.|
|Site||An object representing the Host object of the Site the Page is located on.|
|Site Name||Name of the Site the Page is located on.|
|Folder||An object representing the Folder the Page is located in.|
|Path||Path of the Folder the Page is located in.|
|Language Id||The Language ID of the version of the Page being displayed.|
|Identifier||identifier of the Page.|
|iNode||iNode of the Page.|
|Modification Date||Last Modification Date of the Page properties.|
|Cache TTL||TTL (Time To Live) of the Page cache.|
|Template ID||ID of the Template assigned to the Page.|
|Show On Menu Flag||Show on Menu field value.|
|Sort Order||Sort Order field value.|
|Friendly Name||Friendly Name field value.|
|Redirect URL||Redirect URL field value (if set).|
|HTTPS Required||If true, HTTPS is required to access the page.|
|SEO Description||SEO Description field value.|
|SEO Keywords||SEO Keywords field value.|
|Page Metadata||Page Metadata field value.|