Il mio codice esistente crea un menu simile a questo.Come aggiungo un sottomenu ad un menu esistente in Magento?
Ma io voglio un menu che è un sottomenu del menu Catalogo.
Ecco il mio codice esistente nel 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>
Quando provo a aggiungere questo codice nel config.xml, il nome del catalogo predefinito è stato sostituito con un sottotitolo nei ruoli acl. come posso correggerlo – Naveenbos
@Naveenbos Hai ragione, il codice per l'ACL non è corretto, dovrebbe essere '\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t Sottovoce 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