Highlighting a menu in magento running

I add a submenu to admin in the parent menu, but when we select a submenu, only one submenu is highlighted in admin and the other is not highlighted.

I have the following code in config.xml.

<menu> <customersettings module="customersettings"> <title>Advance Settings</title> <sort_order>100</sort_order> <children> <customersettings module="customersettings"> <title>Customer Settings</title> <sort_order>0</sort_order> <action>customersettings/adminhtml_customersettings</action> </customersettings> </children> </customersettings> </menu> 

Please give me some suggestions, thanks.

+7
source share
1 answer

In your controller file you can add

 public function _initAction() { $this->loadLayout()->_setActiveMenu('customersettings/customersettings'); return $this; } 

This will highlight the menu if a submenu is selected.

I hope I'm right

+16
source

All Articles