Collection sidebar folders (group collections under a collapsible header) #1615
dennisklappe
started this conversation in
Ideas
Replies: 2 comments
|
Would be nice to extend this to taxonomies too |
0 replies
|
Implemented in this shape (plus taxonomies and plugin admin pages), with before/after from a 17-collection site: #3061. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
Once a site has more than a handful of collections, the content sidebar becomes a long flat list. It gets worse with patterns that deliberately use many small collections, for example one collection per page type so each page shows only the fields it actually uses (no empty or irrelevant fields). For non-technical clients a long flat list is hard to scan.
Idea
An optional
grouplabel on a collection. Collections that share agroupvalue render under a collapsible folder in the admin content sidebar. Collections without agroupstay inline exactly as today, so it is fully opt-in and backward compatible.Example: a site splits its pages into "Algemene paginas", "Paginas met FAQ", and "Paginas met FAQ en beeld", all with
group: "Paginas". The sidebar then shows one collapsible "Paginas" folder instead of three top-level entries.Rough shape
group?: stringon the collection config and the seed collection schemagroup_namecolumn)Why
It keeps the "one collection per page type" approach usable without cluttering the sidebar, which is the cleanest way to avoid empty fields. Small, contained, opt-in.
I have already implemented this in my own fork and it is running in production on a client site, so I am happy to open a PR that follows the contribution guidelines if this aligns with the project's direction. Would you welcome it?
All reactions