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

PropertyReturnsDescription
pagePathStringThe path of the page template this view renders.
textStringA 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.

ParameterDescription
itemthe 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.

ParameterDescription
sthe 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.

ParameterDescription
pagePaththe path of the page template to render
To get full access to the Kademi Hub existing customers can login here, or new customers can register here.