Mój istniejący kod tworzy menu, które wygląda tak.Jak dodać podmenu do istniejącego menu w Magento?
Ale chcę menu, które jest pod-menu menu katalog.
Oto mój istniejącego kodu w 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>
Gdy próbuję dodać ten kod w config.xml, domyślną nazwę katalogu został zastąpiony podrzędnym w rolach ACL. jak mogę to poprawić. – Naveenbos
@Naveenbos masz rację, kod ACL nie jest poprawna, powinny być '\t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t \t podelementu 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