Removing an Item from Magento#39;s Admin Panel Navigation(从 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 的管理面板导航中删除项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:从 Magento 的管理面板导航中删除项目
基础教程推荐
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- php中的foreach复选框POST 2021-01-01
- 将变量从树枝传递给 js 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- php中的PDF导出 2022-01-01
- Web 服务器如何处理请求? 2021-01-01
