When you go to “Menu Configuration” from Navigation, you will see below default screen.
It allows you to set order of your modules menu wise in Admin Panel.
See default screen
While adding new module , it will ask you,
- To add this module in menu or not (Add To Menu),
- Under which parent menu, you want to show this module (Parent Menu),
- Menu display name
See below screen for adding new module
Overview of Menu Configuration
Different types of Status menu
- Active : It will show menu at Admin panel.
- Inactive : It will neither show menu at Admin panel nor show in list of Group permission role.
- Hidden : It will not show menu at Admin panel but show in list of Group permission role.
Save Sequence : whenever you set position of menu by dragging , you need to save sequences otherwise it will not be reflected. So it’s necessary to save sequence after changing position.
Landing Page Settings : It allows you to set different landing page for individual admin group. All admin groups are reflected here, you can set different landing page.
Here , we have 3 different admin groups. You can see it in Admin panel
Admin panel → Users → Group
See below “admin group” screen:
Different Menu Types
It allows you to add 3 different types of menu
- Module : Add created “module” as menu.
- Dashboard : Add created“dashboard page” as menu.
- Custom : Add custom page as menu.
How to create new “PARENT Menu”?
If you want to create “Parent menu” , then you can do it. You need to configure menu settings. (If no parent menu is selected then it becomes Parent menu)
It allows you to create parent menu of different types. (Module / Dashboard / Custom).
Here, we have created “Parent Menu” of “Module” type.
Don’t select any parent menu, it will automatically become parent menu.
Just add menu and you will see “My modules” at 1st position and it will redirect to user module as per we have selected module.
(It doesn’t allow to set label for parent menu. It’s required to select any module)
Note : If parent has sub menu , then parent will take 1st sub menu module as redirection when click on “parent” menu. So we have to set 1st sub menu module same as selected module as parent menu. Here, it’s “User details”.
How to add Sub Menu (Type = Module)
How to add SUB MENU in “Parent Menu = My module”? (Type = Module)
See below screen, submenu is added.
It allows you to add submenu and set its order position as well. It will be reflected in “Menu Navigation Bar” at Admin Panel.
We have seen how to add parent menu and submenu with the type of “Module”. If we want to add “Dashboard page” as menu (Parent/Submenu) , then it allows you to do this.
Just need to select type “Dashboard”
Now, we add “dashboard page” in Parent menu “My module” that we have created.
How to add Sub Menu (Type = Dashboard Page)
How to add sub menu in “Parent Menu = My module”? (Type = Dashboard Page) We have seen how to create dashboard page in “Dashboard Management” section.
All the created dashboard pages will be auto populated after selecting type “Dashboard”.
See below screen of Admin panel
How to add Sub Menu (Type = Custom)
How to add sub menu in “Parent Menu = My module”? (Type = Custom) Just set type “Custom”. You need to define URL there.
For Example (URL syntax) :
tools/country/index : it refers application
> country (Controller)
> index (Function)
It will be added your menu at Admin panel.