0
我需要這個用於我正在處理的自定義模塊。因此,舉例來說,我有在配置菜單創建標籤主要模塊:如何將第二級添加到Magento admin config acl?
<config>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<mymodule translate="title" module="mymodule_all">
<title>My Module</title>
</mymodule>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</config>
然後我具有μ-子模塊屬於該標籤:
<config>
<acl>
<resources>
<admin>
<children>
<system>
<children>
<config>
<children>
<mymodule>
<children>
<submodule translate="title" module="submodule">
<title>Sub Module</title>
</submodule>
</children>
</mymodule>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</config>
因此,與上面的例子中的配置 - 子在角色資源配置中,模塊不可見。
從子模塊中刪除acl有點幫助,它變得可見,但它現在與mymodule在同一層,這不是我想要的。
Magento在config部分只允許一級acl嗎?或者,也許我做錯了什麼?
謝謝。