feat: Add group by to collection view (Issue 3614) (#4486)

This commit is contained in:
Kancer (Nilay) Gökırmak
2020-11-08 17:33:09 +01:00
committed by GitHub
parent 519cb2d4c2
commit e52e29034e
22 changed files with 537 additions and 110 deletions

View File

@ -27,6 +27,12 @@ collections: # A list of collections the CMS should be able to edit
- label: Drafts
field: draft
pattern: true
view_groups:
- label: Year
field: date
pattern: \d{4}
- label: Drafts
field: draft
fields: # The fields each document in this collection have
- { label: 'Title', name: 'title', widget: 'string', tagname: 'h1' }
- { label: 'Draft', name: 'draft', widget: 'boolean', default: false }

View File

@ -27,6 +27,12 @@ collections: # A list of collections the CMS should be able to edit
- label: Drafts
field: draft
pattern: true
view_groups:
- label: Year
field: date
pattern: \d{4}
- label: Drafts
field: draft
fields: # The fields each document in this collection have
- { label: 'Title', name: 'title', widget: 'string', tagname: 'h1' }
- { label: 'Draft', name: 'draft', widget: 'boolean', default: false }