These docs are for v2.0. Click to read the latest docs for v5.0.

Manifest

manifest.json

Manifest.json is where you specify some behavior of the template.
It is only required for multi items templates.

{
    "editWitoutPostback": true,
    "editRole": "OpenContentEditor",
    "templates": {
        "template": {
            "type": "multiple", /* single or multiple*/
            "title": "List",            
            "main": {
                "template": "template.hbs",
                "partialTemplates": {
                    "item": {
                        "template": "item.hbs"
                    }
                },
                "schemaInTemplate": true,
                "optionsInTemplate": true
            },
            "detail": {
                "template": "detail.hbs",
                "partialTemplates": {

                },
                  "schemaInTemplate": true,
                "optionsInTemplate": true
            }
        },
        "categories": {
            "type": "multiple", /* single or multiple*/
            "title": "Categories",
            "main": {
                "template": "categories.hbs",
                "schemaInTemplate": true,
                "optionsInTemplate": true
            }           
        }
    }
}

Manifest

NameDefault ValueRemark
editWitoutPostbackfalsein edit mode wrap the view control in an updatepanel to avoid full page postback
editRolewhen specified, users with the editRole can add records and edit records created by them. (only applicable for multi items templates)
templatessee Templatelist of templates included in the template folder

Template

NameDefault valueRemark
typesingle or multiple
titletext listed in the templates dropdown lists
mainsee Template Filelist template
detailsee Template Filedetail template

Template File

NameDefault ValueRemark
templatefile name of the template file (.hbs or .cshtml)
partialTemplatesonly for handlebars template file. Load additional partial template files.
schemaInTemplatefalseMake the schema.json available as a variable schema (Model.Schema for razor) in template files
optionsInTemplatefalseMake the options.json available as a variable Options (Model.Options for razor) in template files