decaporg / decaporg/decap-cms

Collection grouping enabled by default

Open
#7,568 2 comments 0 reactions 0 assignees View on GitHub
area: ui/collection type: feature
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Is your feature request related to a problem? Please describe.**

I created two collections: `sections` and `articles`. Each article must be assigned to a section. For convenience, I added in the config

```
view_groups:
- label: Section
field: section
```

I would like to always open the list with a grouping selected.

**Describe the solution you'd like**

Ideally, I could configure a default selection so that initially when the list opens, the entries are grouped

```
view_groups:
- label: Section
field: section
default: true
```

It would be logical that only one view group can have `default` property or that last wins

**Describe alternatives you've considered**

I noticed that the selected group is preserved on navigation but not after full page reload.

A simpler solution could keep the chosen group in local storage so that it's applied after refreshing the page

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.