Description
In this episode, you’ll learn how to add a custom item to the Sylius admin menu – using the “Brands” section as an example, which was previously only accessible via direct URL.
You’ll learn:
- Why new entities (like Brand) are not automatically shown in the admin navigation,
- How Sylius’s event system triggers a hook during menu rendering (sylius.menu.admin.main),
- How to create an event subscriber that:
- accesses the main menu,
- locates the Catalog section,
- adds a new item labeled Brands,
- How to configure label, icon (tag), and the route to your custom Brand grid.
Final result:
- After refreshing the admin panel, a Brands link appears under the Catalog menu section,
- Admin users get quick and convenient access to manage brands – no more manual URL typing,
- The interface becomes more usable and professional.
This is a simple but crucial improvement in admin UX, implemented with Sylius’s event-driven architecture – clean, decoupled, and extensible.