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 的管理面板导航中删除项目
- 如何使用 Google API 在团队云端硬盘中创建文件夹? 2022-01-01
- 如何从数据库中获取数据以在 laravel 中查看页面? 2022-01-01
- Laravel 5:Model.php 中的 MassAssignmentException 2021-01-01
- Oracle 即时客户端 DYLD_LIBRARY_PATH 错误 2022-01-01
- openssl_digest vs hash vs hash_hmac?盐与盐的区别HMAC? 2022-01-01
- 覆盖 Magento 社区模块控制器的问题 2022-01-01
- PHP - if 语句中的倒序 2021-01-01
- 如何在 Symfony2 中正确使用 webSockets 2021-01-01
- 使用 GD 和 libjpeg 支持编译 PHP 2022-01-01
- PHP foreach() 与数组中的数组? 2022-01-01
