我正在尝试向 Magento 管理区域添加几个菜单项。以下代码显示“本地访问 IP”子菜单项,但不显示“远程访问日志”子菜单项。
<?xml version="1.0"?>
<config>
<menu>
<VMR_Whitelist_menu translate="title" module="VMR_Whitelist">
<title>VMR Modules</title>
<sort_order>300</sort_order>
<children>
<!-- child items go here -->
<subitem translate="title" module="VMR_Whitelist">
<title>Remote Access Logs</title>
<sort_order>9</sort_order>
<action>adminhtml/whitelist/logs</action>
</subitem>
<subitem translate="title" module="VMR_Whitelist">
<title>Local Access IPs</title>
<sort_order>10</sort_order>
<action>adminhtml/whitelist/local</action>
</subitem>
</children>
</VMR_Whitelist_menu>
</menu>
<acl>
<resources>
<admin>
<children>
<VMR_Whitelist_menu translate="title" module="VMR_Whitelist">
<title>VMR Modules</title>
<sort_order>300</sort_order>
<children>
<!-- child items go here -->
<subitem translate="title" module="VMR_Whitelist">
<title>Remote Access Logs</title>
<sort_order>9</sort_order>
</subitem>
<subitem translate="title" module="VMR_Whitelist">
<title>Local Access IP Write Access</title>
<sort_order>10</sort_order>
</subitem>
</children>
</VMR_Whitelist_menu>
</children>
</admin>
</resources>
</acl>
</config>
任何关于为什么一个会出现而不是另一个的想法都非常感谢!