Enabling the dashboard
The dashboard is disabled by default. Enable it in your bundle config:config/packages/nowo_dashboard_menu.yaml
config/routes.yaml
/admin/menus (or whichever prefix you choose).
The
path_prefix config key under dashboard: is deprecated. Set the prefix directly in your routing file as shown above.Restricting access
To require a specific role for all dashboard routes, setrequired_role:
config/packages/nowo_dashboard_menu.yaml
required_role as null (the default) to rely on your app’s access_control rules or firewall configuration instead.
Features
List menus
Browse all menus with a search filter and pagination. Each menu shows its code, name, context, and item count.
Create and edit menus
Set the code, name, optional context (JSON), icon, permission checker, depth limit, collapsible options, and CSS classes.
Manage items
Add, edit, reorder, and delete items. Items are displayed in tree order showing parent–child relationships.
Copy menus
Duplicate a menu and all its items under a new code. Useful for scaffolding environment-specific or partner-specific menus.
Export and import JSON
Export one menu or all menus as a JSON file. Import JSON files with a Skip existing or Replace strategy.
Form panels: definition vs. configuration
Menu and item forms are split into two panels to keep the most-used fields accessible:| Panel | Icon | What it contains |
|---|---|---|
| Definition | Pencil | Code, name, context, icon (for menus); type, icon, labels (for items) |
| Configuration | Gear | Permission checker, depth limit, collapsible options, CSS classes (for menus); position, parent, link settings, permission key (for items) |
Post-action redirect
After any successful action (create, update, delete, copy, move, or import), the dashboard redirects to theReferer header when it is same-origin. Otherwise it redirects to the relevant list or show page.
Pagination
The menu list is paginated by default. Configure pagination in your bundle config:config/packages/nowo_dashboard_menu.yaml
Next steps
Managing menus
Learn how to create, edit, copy, and delete menus.
Managing items
Learn how to create, organize, and delete menu items.