Multi items
Multi items templates
Multi items templates can manage many records in the database.
In opposite to single item templates which manage one record like a html module.
Single item templates can also contain list of items, but they are stored in 1 record and can be ordered by the editor.
Multi items templates are suitable for larger amount of items. But the items are not ordered by the editor. They can be ordered by the template file.
A record is added from the module action menu when you are in edit mode.
Edit actions are added near by each item on the screen.
example with jplist plugin for filtering and paging
Large amount of items
Actually filtering can only be done client side. 1000 records is a maximum.
How to...
Multi items templates use a manifest file for define the list template file and the detail template file.
{
"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
}
}
}
}
Demo
http://www.openextensions.net/dnn-modules/opencontent/catalog
Updated less than a minute ago