apostrophe-schemas
Advanced tools
Comparing version 0.5.10 to 0.5.11
{ | ||
"version": "0.5.10", | ||
"version": "0.5.11", | ||
"name": "apostrophe-schemas", | ||
@@ -4,0 +4,0 @@ "description": "Schemas for easy editing of properties in Apostrophe objects", |
@@ -146,25 +146,30 @@ # apostrophe-schemas | ||
You may group fields together into tabs instead using the `groupFields` option. Here's how we do it in the `apostrophe-blog` module: | ||
You may group fields together into tabs instead using the `groupFields` option. Here's how you would do it if you wanted to override our tab choices for the blog: | ||
```javascript | ||
options.groupFields = options.groupFields || | ||
// We don't list the title field so it stays on top | ||
[ | ||
{ | ||
name: 'content', | ||
label: 'Content', | ||
icon: 'content', | ||
fields: [ | ||
'thumbnail', 'body' | ||
] | ||
}, | ||
{ | ||
name: 'details', | ||
label: 'Details', | ||
icon: 'metadata', | ||
fields: [ | ||
'slug', 'published', 'publicationDate', 'publicationTime', 'tags' | ||
] | ||
} | ||
]; | ||
modules: { | ||
'apostrophe-blog': { | ||
groupFields: [ | ||
// We don't list the title field so it stays on top | ||
[ | ||
{ | ||
name: 'content', | ||
label: 'Content', | ||
icon: 'content', | ||
fields: [ | ||
'thumbnail', 'body' | ||
] | ||
}, | ||
{ | ||
name: 'details', | ||
label: 'Details', | ||
icon: 'metadata', | ||
fields: [ | ||
'slug', 'published', 'publicationDate', 'publicationTime', 'tags' | ||
] | ||
} | ||
]; | ||
] | ||
} | ||
} | ||
``` | ||
@@ -171,0 +176,0 @@ |
78431
866