Official way to replace or configure the Admin DefaultTemplate (remove nav-toggler, customize shell) #13972
alexpmichelet
started this conversation in
Feature Requests & Ideas
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.
-
Problem
While building a plugin, I hit limitations customizing the admin UI at the root route (
/admin
). The documented extension points are great for adding content and replacing some pieces (header, sidebar/nav, icons, avatar), but certain elements imposed by the default template cannot be removed or meaningfully restructured. A concrete example is the nav toggler (#nav-toggler
). I don’t want it in my layout, but there’s no clean, supported way to disable or replace that part of the chrome for the default admin routes.I know I can build a completely custom view under a separate route, but this doesn’t help when I want to customize the shell/chrome for the default admin routes. In practice, I find myself fighting the
DefaultTemplate
instead of composing around it.Why the existing options fall short
What I’m trying to do
DefaultTemplate
used by the default admin routes with my own component, or at least disable/remove specific built-in chrome (like the nav toggler) and supply my own.Proposed API
Template override (global, supported)
In
payload.config.ts
:This in my opinion would apply to the default admin routes, not just custom views. It lets a plugin cleanly replace the shell while preserving server behaviors and contexts.
Beta Was this translation helpful? Give feedback.
All reactions