Two levels backend navigation on custom main menus #196
-
Hello, we would like to use the two levels (accordion) hierarchy for backend navigation in our custom backend menus, just like it is in the Settings menu. At https://wintercms.com/docs/plugin/registration#navigation-menus we see how to register a custom main menu item ("blog"), and and the submenus ("posts", "categories"), but this is only one level navigation inside a main menu. regards, Gabor Horn |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
You can use the NavigationManager::registerContextSidenavPartial() method to define a custom partial for the side navigation for a particular main menu item. This is what the Settings area does. The custom partial can then be set up to format the side menu in whichever fashion you would like. You can take a look at the Settings sidenav partials to get an idea of how to set it up similar to the Settings area. |
Beta Was this translation helpful? Give feedback.
You can use the NavigationManager::registerContextSidenavPartial() method to define a custom partial for the side navigation for a particular main menu item. This is what the Settings area does.
The custom partial can then be set up to format the side menu in whichever fashion you would like. You can take a look at the Settings sidenav partials to get an idea of how to set it up similar to the Settings area.