Skip to content

The admin sidebar: what's in the menu and how to change it

Describes PhoenixKit 3.5.0.

The sidebar on the left of every admin page is the admin’s main menu. It shows only the entries you can actually open, so two people with different roles see different menus.

Where to find it

On every page under /admin. On a phone it is a drawer that opens from the menu button in the header.

The PhoenixKit admin sidebar beside the Users page: Activity, Jobs, Media, Billing, Newsletters, E-Commerce and the other enabled modules The PhoenixKit admin sidebar beside the Users page: Activity, Jobs, Media, Billing, Newsletters, E-Commerce and the other enabled modules

The admin sidebar lists core pages and every enabled module.

What the menu holds

The entries come in three groups:

  • the main group: Dashboard, Users, Activity, Jobs, Media, and the modules used for daily work (such as Projects or CRM, when installed);
  • the modules group: one entry per other enabled module, Notifications and Modules;
  • the system group: Settings.

Some entries have sub-entries that open when you are in that section. Users, for example, holds Users, Live Sessions, Sessions, Roles, Relationship types and Permissions. Settings holds General, Authorization, Organization, Users, Website access and the settings pages of your modules.

Why an entry is missing

An entry shows only when all of these are true:

  • the module behind it is enabled on the Modules page;
  • your role has the permission it needs (see the Roles and permissions guide);
  • any extra condition it has is met. Relationship types, for example, shows only while organization accounts are on, and Notifications only while notifications are on.

A person with no admin permissions at all sees an empty menu, and only the dashboard greeting.

Collapsing the menu

On a wide screen, Collapse at the bottom of the sidebar shrinks it to icons. Click it again (Expand the menu) to bring the labels back. The choice is remembered in your browser, not in your account, so another browser or computer starts with the full menu.

For developers

The menu is built from registered tabs, so a host app changes it in config/config.exs rather than in a template:

  • Add an entry with config :phoenix_kit, :admin_dashboard_tabs, [...], giving each tab an id, label, icon, path, permission, priority and group (:admin_main, :admin_modules or :admin_system). Add live_view: {MyAppWeb.SomeLive, :index} and PhoenixKit creates the route inside its admin session, so moving to it doesn’t reload the page.
  • Hide a built-in entry with config :phoenix_kit, hidden_admin_tabs: [:admin_jobs].
  • Reorder with config :phoenix_kit, :admin_tab_order, %{admin_crm: 125} (a priority, or %{priority: …, group: …}). Lower numbers sit higher.

These are applied every time the menu is rebuilt, so they survive a restart. The full reference is lib/phoenix_kit/dashboard/ADMIN_README.md in the package.

What it doesn’t do

  • There is no screen in the admin for reordering or hiding entries; that is configuration.
  • Hiding an entry doesn’t block the page. Access is decided by permissions.