You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
617 B
32 lines
617 B
const Template = require('../__template')
|
|
const coll = new Template('landingpages', 'Landing Pages', 'mdi-home', 'Pages d\'accueil')
|
|
|
|
coll.indexes.push({keys: {name: 1}, options: {unique: true}})
|
|
|
|
coll.schema = {
|
|
type: 'object',
|
|
additionalProperties: false,
|
|
required: ['name'],
|
|
properties: {
|
|
name: {
|
|
type: 'string'
|
|
},
|
|
description: {
|
|
type: 'string'
|
|
},
|
|
preview: {
|
|
type: 'string'
|
|
},
|
|
page: {
|
|
type: 'array',
|
|
items: {
|
|
type: 'array'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
module.exports = function (pCtx) {
|
|
require('./landingpages.form')(pCtx, coll)
|
|
return coll
|
|
}
|