orionjs / orioncms

[Old] Orion is an open source framework built on Meteor that makes complex as well as simple apps possible with minimal effort.
http://orionjs.org
MIT License
715 stars 129 forks source link

Version 1.8 #379

Closed nicolaslopezj closed 8 years ago

rwatts3 commented 8 years ago

Hello @nicolaslopezj ,

I was intending to ask this question a while back, but as the updates for 1.8 are undergo would it be possible to add grouping to the collections. For example a user should be able to pass an array through the register process of an orion collection. Possibly separate this through tabs like how the dictionary does, or through an accordion. Items that are not assigned to a group will simply render like they typically would, or can be assigned to a default group of some sort. This would allow users that have large schemas the ability to organize the form a little better. vs. having an extremely large form of data.

Something like this :

Articles = new orion.collection('articles', {
    singularName: 'Article',
    pluralName: 'Articles',
    title: 'Articles',
    link: {
        title: 'Articles'
    },
    tabular: {
        columns: [{
                data: 'title',
                title: 'Article Title'
            }, {
                data: 'published',
                title: 'Published'
            },
            orion.attributeColumn('image', 'image', 'Image'),
            orion.attributeColumn('froala', 'content', 'Article Preview'),
            orion.attributeColumn('createdBy', 'createdBy', 'Created By'),
            orion.attributeColumn('createdAt', 'createdAt', 'Created At')

        ]
    },
    groups: [
        {name: 'admin', label: 'Admin', fields: ['published', 'slug']},
        {name: 'content', label: 'Content', fields: ['content', 'image']}
    ]
});