How do I remove the action of a menu.xml item?
-
05-02-2021 - |
Question
Using Magento 2.2.5.
I have an 3rd party extension admin menu item that should be a header, but has an action
so is rendering as a link (which 404s). Is there a way to override the menu.xml
item and remove the action
property?
In my custom module I have basically the same definition but removing the action
property:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<update id="Third_Party::menu" title="Succesfully overriding the title" module="Third_Party" sortOrder="101" parent="Magento_Catalog::catalog" resource="Third_Party::menu" />
</menu>
</config>
While my custom module's menu.xml
update is being picked up and the title
is changing, the xml is inheriting the action
property from the Third_Party/etc/adminhtml/menu.xml
file.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange