Mi código existente crea un menú que se ve así.¿Cómo agrego un submenú a un menú existente en Magento?
Pero quiero un menú que es un submenú del menú Catálogo.
Aquí está mi código existente en adminhtml.xml
<?xml version="1.0" ?>
<config>
<menu>
<mycustom_menu translate="title" module="brands">
<title>My Custom Menu Item</title>
<sort_order>300</sort_order>
<children>
<!-- child items go here -->
<subitem translate="title" module="brands">
<title>Manage Brands</title>
<sort_order>10</sort_order>
<action>adminhtml/mycustom_controller/</action>
</subitem>
</children>
</mycustom_menu>
</menu>
<acl>
<resources>
<admin>
<children>
<mycustom_menu translate="title" module="brands">
<title>My Custom Menu Item</title>
<sort_order>300</sort_order>
<children>
<subitem translate="title" module="brands">
<title>Subitem</title>
<sort_order>10</sort_order>
</subitem>
</children>
</mycustom_menu>
</children>
</admin>
</resources>
</acl>
</config>
Cuando trato de añadir este código en el config.xml, el nombre del catálogo por defecto fue reemplazado con subitem en los roles acl. ¿Cómo puedo corregirlo? – Naveenbos
@Naveenbos tiene usted razón, el código de la ACL no es correcto, debería ser '\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t Subitem 1 \t \t \t \t \t \t your_subitem> \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t ' –
electroid