jsharmony-cms
Version:
62 lines (58 loc) • 3.69 kB
JSON
{
"title": "Template Name",
"default_content": {
"body": "Default Page Content",
"footer": "Default Footer Content"
},
"templates": { //Templates as string
"editor": "...", // Prepended by <templateBaseFileName>.templates.editor.ejs
"publish": "...", // Prepended by <templateBaseFileName>.templates.publish.ejs
// Export as JSON by setting templates.publish to "format:json"
},
"remote_templates": { //Templates downloaded as URLs
"editor": "https://server/templates/pages/1col_sidebar.editor.html?page_key=%%%page_key%%%&page_id=%%%page_id%%%&branch_id=%%%branch_id%%%&page_template_id=%%%page_template_id%%%&env=%%%env%%%&_=%%%timestamp%%%",
"publish": "https://server/templates/pages/1col_sidebar.publish.html?source=1&_=%%%timestamp%%%"
},
"content_elements": {
"body": { "title": "Body" },
"content_element_id": {
"title": "Editable Area Name",
"editor_toolbar": {
"dock": "auto", //Dock position for the Editor Menu and Toolbar :: "top", "top_offset", "bottom", or "auto" (default)
"show_menu": true, //Whether to display the editor menu :: true (default), or false
"show_toolbar": true, //Whether to display the editor toolbar :: true (default), false
// The editor_toolbar "top_offset" dock style uses the same margin-top method as the "page_toolbar" top_offset dock style
},
"type": "htmleditor" //SYSTEM Property - "htmleditor" (default), or "texteditor" for raw text
}
},
"properties": {
"fields": [
{ "name": "showTitle", "caption": "Show Title", "type": "varchar", "length": "32", "default": "Y",
"control": "checkbox", "controlparams": { "value_true": "Y", "value_false": "N" } },
{ "name": "bodyClass", "caption": "Body CSS Class", "type": "varchar", "length": 1024,
"control": "textbox", "controlstyle": "width:400px", "validate": ["MaxLength:1024"]},
{ "name": "bodyStyle", "caption": "Body CSS Style", "type": "varchar", "length": 1024,
"control": "textbox", "controlstyle": "width:400px", "validate": ["MaxLength:1024"]}
]
},
"options": {
"title_element_required": true, //(Default true) If set to false, will not require cms-title element on the page
"page_toolbar": {
"dock": "top_offset" // Page toolbar dock position
// "top_offset" :: (Default) Dock to top, and add margin-top to <body> and all fixed elements
// "top" :: Dock to top, and do not offset existing content.
// "bottom" :: Dock to bottom
//The following classes are added to the <body> tag during editing:
// jsharmony_cms_editor - Always added when viewing a page in the Page Editor
// jsharmony_cms_editing - Added when currently editing a content element
// jsharmony_cms_editing_<content_element_id> - Added when currently editing a content element
},
"virtual_render": false, // If set to true, page does not export to file system on publish
},
//System Properties
"content": { "content_element_name": "..." }, //SYSTEM - Hard-coded content element content. Generally use "default_content" instead
"components": { "component_name": { /* Component definition */ } }, //SYSTEM - Inline page components
"raw": false, //SYSTEM - Used only on the <Raw Text> template
"standalone": false, //SYSTEM - Used only on the <Standalone> template
}