This section describes the public JSON formats of exportable application templates.
Public format for template-root
Public format for template-root:
Properties in the JSON file:
Property |
Value |
Description |
---|---|---|
ecr:type |
templates-root |
Required. |
ecr:createDate |
yyyy-MM-dd'T'HH:mm:ss.SSSX |
Optional. Date and time that this item was created. Defaults to creation date of the JCR. |
Example:
{ "ecr:createDate": "2015-08-11T14:57:34.958Z", "ecr:type": "templates-root" }
Public format for template:
Properties in the JSON file:
Property |
Value |
Description |
---|---|---|
ecr:type |
template |
Required. |
ecr:createDate |
yyyy-MM-dd'T'HH:mm:ss.SSSX |
Optional. Date and time that this item was created. Defaults to creation date of the JCR. |
defaultContentItem |
List of content item property default values |
Required. The content item that can be created in Experience Manager using this template. |
editorPanel |
EditorPanel |
Required. |
editor |
String |
Specifies the type of editor panel. |
children |
Array of editors |
Optional. Alllows JSON nodes, editor and GroupLabel |
@group |
String |
Required. Indicates where the template fits in an application page. |
@description |
String |
Required. Helps the content administrator identify the template in Experience Manager. |
@thumbnailUrl |
String |
Required. Absolute URL to a thumbnail image that shows a sample page or section that is based on the template. |
typeInfo |
List of property types |
Required. Specifies the type of each content item property. |
Example:
{ "@description": "${template.description}", "@group": "Navigation", "ecr:createDate": "2016-09-12T17:33:58.404+05:30", "@thumbnailUrl": "thumbnail.jpg", "ecr:type": "template", "defaultContentItem": { "lessLinkText": "Show Less Refinements...", "numRefinements": "10", "@name": "Dimension Navigation", "dimensionId": "", "moreLinkText": "Show More Refinements...", "maxNumRefinements": "200", "sort": "default", "showMoreLink": false, "dimensionName": "" }, "editorPanel": { "editor": "editors/DefaultEditorPanel", "children": [ <additional elements omitted from this example> ] }, "typeInfo": { "boostRefinements": {"@propertyType": "List"}, "buryRefinements": {"@propertyType": "List"}, "dimensionId": {"@propertyType": "String"}, "dimensionName": {"@propertyType": "String"}, "lessLinkText": {"@propertyType": "String"}, "maxNumRefinements": {"@propertyType": "String"}, "moreLinkText": {"@propertyType": "String"}, "numRefinements": {"@propertyType": "String"}, "showMoreLink": {"@propertyType": "Boolean"}, "sort": {"@propertyType": "String"} } }