本文介紹了從 Magento 的管理面板導航中刪除項目的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
使用 Magento 電子商務系統,是否可以從管理面板導航菜單中刪除項目?更一般地說,有沒有辦法使用配置覆蓋系統從配置中刪除現有元素?
Using the Magento Ecommerce system, is is possible to remove an item from the Admin Panel Navigation menu? More generally, is there a way to use the config override system to remove existing elements from a configuration?
我知道我可以使用如下所示的替代添加到導航中
I know I can add to the navigation with an override that looks something like this
<?xml version="1.0"?>
<config>
<modules>
<Company_Module>
<version>
0.1.0
</version>
</Company_Module>
</modules>
<adminhtml>
<menu>
<cms translate="title" module="cms">
<title>The CMS</title>
<sort_order>70</sort_order>
<children>
<foo translate="title" module="cms">
<title>Foo Item</title>
<action>adminhtml/foo</action>
</foo>
</children>
</cms>
</menu>
</adminhtml>
</config>
但是我如何/如何完全取消 CMS 導航項?
but how would/could I completely suppress the CMS navigation item?
推薦答案
更簡潔的方法:
添加 adminhtml.xml(例如,添加到保留所有其他自定義內容的現有模塊,或創建新模塊)
Add a adminhtml.xml (e.g. to an existing modules that keeps all other customization stuff, or create a new module)
<?xml version="1.0" ?>
<config>
<menu>
<xmlconnect>
<disabled>1</disabled>
</xmlconnect>
</menu>
</config>
這篇關于從 Magento 的管理面板導航中刪除項目的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!