UNPKG

oils-plugin-braziw-cms

Version:

Content and document management system plugin for oils js

26 lines (23 loc) 744 B
//TODO: make this OBOSOLETE, use syspars instead in the future module.exports = { name: 'SiteSetting', schema: { name: {type: String, required: true, default: 'site_settings'}, docType: {type: String, required:true, default: 'SiteSetting'}, title: {type: String}, version: {type: String}, }, initSchema: function(mySchema) { mySchema.post('save', function() { //no next() for post save if (this.docType == 'SiteSetting') { web.cms.updateSiteSettingCache(); } }) }, parentModel: web.cms.conf.models.Document, editables: [ {"name": "title", "type": "text", "label": "Title", "required":true}, {"name": "version", "type": "text", "label": "Site Version", "required":false}, ] }