fix(docs-view-groups): add missing docs (#4546)

This commit is contained in:
Erez Rokah 2020-11-08 18:52:54 +02:00 committed by GitHub
parent e52e29034e
commit f528186594
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -210,6 +210,7 @@ The `collections` setting is the heart of your Netlify CMS configuration, as it
* `summary`: see detailed description below
* `sortable_fields`: see detailed description below
* `view_filters`: see detailed description below
* `view_groups`: see detailed description below
The last few options require more detailed information.
@ -422,3 +423,21 @@ Defaults to an empty list.
field: draft
pattern: true
```
### `view_groups`
An optional list of predefined view groups to show in the UI.
Defaults to an empty list.
**Example**
```yaml
view_groups:
- label: Year
field: date
# groups items based on the value matched by the pattern
pattern: \d{4}
- label: Drafts
field: draft
```