How it works:
Standalone Page Limitations:
Overview:
Standalone Integration can be used to add editable CMS content areas to existing individual pages in an application. This can be used together with, or apart from, a site with a Router Integration.
Integration:
<script type="text/javascript" src="path/to/jsHarmonyCmsClient.min.js"></script>
<script type="text/javascript">
var cmsClient = new jsHarmonyCmsClient({
redirect_listing_path: "jshcms_redirects.json",
access_keys: ["*****ACCESS_KEY*****"]
});
cmsClient.Standalone('path/to/cms_content_page.html');
</script>
<html>
<head>
<!-- integration code -->
</head>
<body>
<h1 cms-title>Page Title</h1>
<div cms-content-editor="page.content.body">Page Content</div>
</body>
</html>
* After this step, the standalone page should be editable from the CMS.
<!-- Page Template Config -->
<script type="text/cms-page-config">
{
"properties": {
"fields": [
{ "name": "showTitle", "caption": "Show Title", "control": "checkbox", "default": "Y", "controlparams": { "value_true": "Y", "value_false": "N" } },
{ "name": "containerClass", "caption": "Container CSS Class" },
{ "name": "containerStyle", "caption": "Container CSS Style" },
]
}
}
</script>
<!-- Static Page Component -->
<div cms-component="breadcrumbs" cms-component-content="breadcrumbs"></div>
<!-- onRender / showIf -->
<h1 cms-title cms-onRender="showIf(page.properties.showTitle!='N');">Page Title</h1>
<!-- onRender / addClass -->
<div cms-onRender="addClass(page.properties.containerClass);"></div>
<!-- onRender / addStyle -->
<div cms-onRender="addStyle(page.properties.containerStyle);"></div>