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.
Generates a meta-data from the provided meta-data model.
the meta-collection 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
.
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
.cmsBaseUrl
option.
For example, for link /site/_cmsinternal/binaries/image1.jpg
with configuration option
cmsBaseUrl = "//localhost:8080/site/spa"
, it will generate //localhost/site/_cmsinternal/binaries/image1.jpg
.The link object to generate URL.
Generates an SPA URL for the path.
spaBaseUrl
.The path to generate URL.
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.