feat(admin): allow hiding user-defined collections from admin sidebar #1764
khoinguyenpham04
announced in
Roadmap
Replies: 0 comments
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.
This Roadmap discussion mirrors #1131: feat(admin): allow hiding user-defined collections from admin sidebar.
Use this discussion to upvote the roadmap item and discuss priority, use cases, and product feedback. Keep implementation tracking, reproduction details, and PR-specific feedback on the source issue.
roadmap/1.0,roadmap/editor-experienceOriginal Issue
Summary
Allow user-defined collections to be hidden from the admin sidebar via a flag on the collection definition. Complements #863 (which addressed built-in features).
Motivation
When a plugin manages a collection end-to-end (autocreating entries, providing its own admin UI), the raw collection list view becomes redundant clutter. Editors should be guided to the plugin's UI, not the auto-generated CRUD page.
Concrete example: A
lead-notes-autofillplugin owns two collections —contact_submissions(autopopulated by the contact API) andlead_notes(1:1 with submissions, also autocreated). The plugin ships a "Lead Inbox" admin page (/_emdash/admin/plugins/lead-notes-autofill/inbox) with search, sort, assignee, and inline editing. The rawContent > Contact SubmissionsandContent > Lead Notessidebar entries are never used in practice but show up next to legitimate editable collections like Blog Posts and Employees, confusing editors.Per the current docs, "Navigation is generated from your collections and installed plugins" — but there's no opt-out per collection.
Proposed API
A
hidden: trueflag on the collection definition (mirroring thesupportsarray):Setting
hidden: trueshould:/content/in the admin/content/:collectionURLs (so plugins can still manage the data and admins can navigate directly if needed)Alternatives Considered
labelto discourage clicks ("Lead Notes (managed by Inbox)") — hacky and the entry still consumes a slot.Context
Real-world install: an Astro site with a custom
lead-notes-autofillplugin that fully owns its two collections. Pairs well with the recentadminPagessupport in plugin descriptors.All reactions