I add submenu in admin under parent menu but when we select submenu, only one submenu will highlight in admin and other would not highlight.
I have add following code in config.xml file.
<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.
In your controller file you can add
public function _initAction()
{
$this->loadLayout()->_setActiveMenu('customersettings/customersettings');
return $this;
}
This will highlight the menu when a sub menu is selected.
Hope I'm right .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With