decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

Collection grouping enabled by default

Open tpluscode opened this issue 7 months ago • 2 comments

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

tpluscode avatar Aug 07 '25 10:08 tpluscode

@tpluscode please update issue title

martinjagodic avatar Aug 07 '25 10:08 martinjagodic

Lol, that's embarrassing. SOrry

tpluscode avatar Aug 07 '25 10:08 tpluscode