Generates a manage content button.
The manage content button meta-data.
Generates a manage menu button.
The menu button meta-data.
Generates a meta-data collection for the Experience Manager buttons.
The button meta-data.
Gets current channel parameters.
The channel parameters.
Gets a root component in the page.
The root component.
Gets a component in the page (e.g. getComponent('main', 'right')
).
The names of the component and its parents.
The component, or undefined
if no such component exists.
Gets a content item used on the page.
The reference to the content. It can be an object containing an RFC-6901 JSON Pointer.
Gets a custom content item used on the page.
The reference to the content. It can be an object containing an RFC-6901 JSON Pointer.
Gets the page root document. This option is available only along with the Experience Pages feature.
The page locale, defaults to en_US.
Generates a meta-data collection from the provided meta-data model.
The meta-data collection model as returned by the page-model-api.
The title of the page, or undefined
if not configured.
Generates a URL for a link object.
spaBaseUrl
or baseUrl
.
In case when the link starts with the same path as in cmsBaseUrl
, this part will be removed.
For example, for link /site/_cmsinternal/spa/about
with configuration options
cmsBaseUrl = "http://localhost:8080/site/_cmsinternal/spa"
and spaBaseUrl = "http://example.com"
it will generate http://example.com/about
.undefined
.The link object to generate URL.
Generates an SPA URL for the path.
cmsBaseUrl
is present, then it will prepend spaBaseUrl
.cmsBaseUrl
is present,
then the behavior will be similar to internal link generation.endpoint
is present,
then it will resolve this link relative to the current page URL.endpoint
is present,
then it will resolve this link relative to the baseUrl
option.The path to generate URL.
The Page Model version.
The current visit data.
The current visitor data.
Whether the page is in the preview mode.
Rewrite links to pages and resources in the HTML content.
This method looks up for a
tags with data-type
and href
attributes and img
tags with src
attribute.
Links will be updated according to the configuration used to initialize the page.
The HTML content to rewrite links.
The content type.
Synchronizes the CMS integration state.
A plain JavaScript object of the page model.
The current page to render.