Renders an HTML page for a content item from a configurable page template path. Registered against a content type as the "pageHtmlTemplate" XStream alias, and built by AssetViewsBuilder.pageTemplateView(String) when a content type's default view or a path mapping needs to render a specific page rather than the platform's default form. At render time it delegates to HtmlTemplater to write the configured page path for the current resource.
Implements: AssetView
Properties
| Property | Returns | Description |
|---|---|---|
| pagePath | String | The path of the page template this view renders. |
| text | String | A short human-readable label for this view, combining a fixed prefix with the configured page path. Used where views are listed for an administrator to choose from. |
Methods
getContentType(Asset item)
Returns: String
The content type this view always produces.
| Parameter | Description |
|---|---|
item | the asset the content type is being resolved for; not used, since this view always produces HTML |
getText()
Returns: String
A short human-readable label for this view, combining a fixed prefix with the configured page path. Used where views are listed for an administrator to choose from.
pagePath(String s)
Returns: PageTemplateContentItemAssetView
Sets the page template path and returns this view, for fluent configuration when building a content type.
| Parameter | Description |
|---|---|
s | the path of the page template to render |
getPagePath()
Returns: String
The path of the page template this view renders.
setPagePath(String pagePath)
Returns: void
Sets the path of the page template this view renders.
| Parameter | Description |
|---|---|
pagePath | the path of the page template to render |