Core
Command palette
Search and run admin commands with the keyboard.
The admin has a command palette. Press ⌘Ctrl K on macOS, or ⌃Ctrl K on other systems. You can also click the search button at the top of the sidebar.
Type to filter. Press ↵ to run the selected command.
Groups
The palette shows these groups, in this order. An empty group does not show.
- Create. One "New
<label>" command for each content type. The command opensnewPathof the type. WithoutnewPath, it opens<basePath>/new. WithoutbasePath, it opens/admin/content/<name>/new. The command shows only if the user has thewritecapability of the type. - Go to. Every admin nav item and nav child. A child shows its parent label as a suffix.
- Theme. System, Light, and Dark.
Each destination shows once. The Create group is built first, so a nav link to a create path does not show again in Go to.
Extend the palette
You do not write palette code. Use the normal extension points:
- A new content type adds a Create command.
- A new nav item adds a Go to command.
- A new settings page adds a Go to command with the suffix "Settings".
Rules for a developer
- Navigate with
navigateToinonSelect. Do not setto. - Keep
UDashboardSearchandUDashboardSearchButtoninsideUDashboardGroup. - Mount only one
UDashboardSearchin the app. The palette opens through the globaldashboard:search:togglehook.
The group labels, the placeholder, and the command labels are translated.