templates/bundles/NowoDashboardMenuBundle/ directory first, so any file you place there silently takes precedence over the bundle’s original.
Overriding a template
Place your override
Create the same relative path under
templates/bundles/NowoDashboardMenuBundle/ in your project:Edit your override
Adjust the markup, blocks, or variables as needed. The bundle always passes
menuTree, menuCode, and menuConfig to menu.html.twig; other templates receive their own documented variables.Overridable templates
| Path | Purpose |
|---|---|
menu.html.twig | Frontend menu tree (sidebar, nav, etc.). Receives menuTree, menuCode, menuConfig. |
dashboard/layout.html.twig | Layout that all dashboard pages extend. Defines the content block. |
dashboard/index.html.twig | Dashboard menu list. |
dashboard/show.html.twig | Single menu detail and item tree. |
dashboard/menu_form.html.twig | Create/edit menu form. |
dashboard/item_form.html.twig | Create/edit menu item form. |
dashboard/copy_menu.html.twig | Copy menu form. |
dashboard/import.html.twig | Import menus from JSON (standalone page). |
dashboard/_import_partial.html.twig | Partial for the import form (loaded in modal). |
dashboard/_menu_form_partial.html.twig | Partial used in the menu form. |
dashboard/_item_form_partial.html.twig | Partial used in the item form. |
dashboard/_copy_menu_partial.html.twig | Partial used in the copy form. |
components/ItemFormLiveComponent.html.twig | Live Component template for the item form modal. |
Collector/dashboard_menu.html.twig | Web debug toolbar / profiler panel. |
Dashboard layout options
You have two ways to customise the dashboard shell:- Config option (recommended)
- Template override
Set Your
dashboard.layout_template in nowo_dashboard_menu.yaml to your app’s base layout. The dashboard will extend it and render inside the content block:base.html.twig must define a content block. This approach gives you the app shell (nav, sidebar, footer) around the bundle’s dashboard pages with no copy-paste.The config option only swaps the extended template. Overriding the file gives complete control over the dashboard HTML. Use the config option for simple shell swaps and file overrides for structural changes.
Form themes
Some bundle templates use:symfony/ux-autocomplete). When you override item_form.html.twig, _item_form_partial.html.twig, or the Live Component template, you can keep, remove, or replace this line freely — it does not block overrides.
Overriding translations
The bundle uses the translation domainNowoDashboardMenuBundle for all strings: dashboard UI labels, buttons, pagination, and form validation messages.
To override a string, add the same key to your application’s translation files for that domain. Application translations take precedence — you only need to define the keys you want to change.
Create the translation file
Create
translations/NowoDashboardMenuBundle.{locale}.yaml in your project (e.g. NowoDashboardMenuBundle.en.yaml).Translation key structure
| Prefix | Purpose |
|---|---|
dashboard.* | UI strings: page titles, button labels, headings, pagination, flash messages. |
form.* | Form field labels and validation messages. |