Skip to content

Collection grouping enabled by default #7568

@tpluscode

Description

@tpluscode

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurecode contributing to the implementation of a feature and/or user facing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions