feat(admin): allow hiding built-in core features from admin sidebar #866
afonsojramos
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
I've moved this to a discussion, as it's a feature request. This is a good idea. The pages and posts part you can do today though: they're just content types, which you can remove if you want. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Summary
Allow Astro projects to opt out of built-in core features (Pages, Posts, Comments, Menus, Redirects, Widgets, Sections, Categories, Tags, Bylines) so they don't appear in the admin sidebar.
Motivation
Many sites use only a subset of EmDash's content surface. For example, a content site with custom collections (authors, blog, events, gallery, locations) may never use Pages, Posts, Comments, Menus, Redirects, Widgets, Sections, Categories, Tags, or Bylines.
Today every install ships with all of these visible in the sidebar, even when empty. For non-technical editors this adds noise — they see eleven nav entries when only five are relevant — and increases the surface area for "what is this for?" support questions.
The current
emdash()integration exposesdatabase,storage,plugins,fonts,auth,authProviders,siteUrl,trustedProxyHeaders,maxUploadSize, but no admin/feature-visibility knob. Thepluginsarray adds plugins; there's no symmetric way to omit core features.Proposed API
A
disabledFeatures(orfeatures: { posts: false, ... }) option on the integration:Disabling a feature should:
Alternatives Considered
Context
Real-world install: an Astro site migrated from a git-based CMS to EmDash for the database-first publishing model, using only a small set of custom collections. The unused core features are inert but visible.
Beta Was this translation helpful? Give feedback.
All reactions