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
Name | Default Value | Remark |
---|---|---|
editWitoutPostback | false | in edit mode wrap the view control in an updatepanel to avoid full page postback |
editRole | when specified, users with the editRole can add records and edit records created by them. (only applicable for multi items templates) | |
templates | see Template | list of templates included in the template folder |
Template
Name | Default value | Remark |
---|---|---|
type | single or multiple | |
title | text listed in the templates dropdown lists | |
main | see Template File | list template |
detail | see Template File | detail template |
Template File
Name | Default Value | Remark |
---|---|---|
template | file name of the template file (.hbs or .cshtml) | |
partialTemplates | only for handlebars template file. Load additional partial template files. | |
schemaInTemplate | false | Make the schema.json available as a variable schema (Model.Schema for razor) in template files |
optionsInTemplate | false | Make the options.json available as a variable Options (Model.Options for razor) in template files |
Updated less than a minute ago