I have \app\code\core\Mage\Catalog\etc\adminhtml.xml
where I have the admin menu and I want to have a sub menu for my manage products item:
<products translate="title" module="catalog">
<title>Manage Products</title>
<action>adminhtml/catalog_product/</action>
<sort_order>0</sort_order>
</products>
so because it is a core file I need to override it in a new place:
I created app\code\local\Mage\Catalog\etc\adminhtml.xml
but it doesn't read from this path
how can I override this file?
so in my extension I tried the following in my config.xml:
<?xml version="1.0" ?> <config>
<modules>
<Lenmar_LightBulbs>
<version>0.0.1</version>
</Lenmar_LightBulbs>
</modules>
<!-- Define frontend and backend routers -->
<admin>
<routers>
<lightbulbs>
<use>admin</use>
<args>
<module>Lenmar_LightBulbs</module>
<frontName>LightBulbs</frontName>
</args>
</lightbulbs>
</routers>
</admin>
<!-- /Define frontend and backend routers -->
<global>
<helpers>
<lightbulbs>
<class>Lenmar_LightBulbs_Helper</class>
</lightbulbs>
</helpers>
<blocks>
<lightbulbs>
<class>Lenmar_LightBulbs_Block</class>
</lightbulbs>
</blocks>
</global>
<adminhtml> <acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<products translate="title" module="catalog">
<title>Manage Products</title>
<action>adminhtml/catalog_product/</action>
<sort_order>0</sort_order>
<children>
<lightbulbs module="lightbulbs">
<title>Manage Light Bulbs</title>
<sort_order>2</sort_order>
<action>lightbulbs/adminhtml_lightbulbs</action>
</lightbulbs>
</children>
</products>
</children>
</admin>
</resources> </acl>
<menu>
<products translate="title" module="catalog">
<title>Manage Products</title>
<action>adminhtml/catalog_product/</action>
<sort_order>0</sort_order>
<children>
<lightbulbs module="lightbulbs">
<title>Manage Light Bulbs</title>
<sort_order>2</sort_order>
<action>lightbulbs/adminhtml_lightbulbs</action>
</lightbulbs>
</children>
</products>
</menu>
<!-- define layout updates -->
<layout>
<updates>
<lightbulbs>
<file>lightbulbs.xml</file>
</lightbulbs>
</updates>
</layout>
<!-- /define layout updates -->
</adminhtml> </config>
PS: working now:
<menu>
<catalog>
<children>
<products translate="title" module="catalog">
<title>Manage Products</title>
<children>
<lightbulbs module="lightbulbs">
<title>Manage Light Bulbs</title>
<sort_order>2</sort_order>
<action>lightbulbs/adminhtml_lightbulbs</action>
</lightbulbs>
</children>
</products>
</children>
</catalog>
</menu>