digitalmarketing and seo
Slide 1

We Designed for

Web Development
Image is not available

In the dynamic landscape of digital presence, harnessing the power of effective web development is paramount. At TAG VIBE....

Slide 2

We Designed

App Development
Image is not available

In today's mobile-centric world, having a mobile app is essential for reaching and engaging with your
audience....

Slide 3

We Designed

Digital Marketing & Search Engine Optimization
Image is not available

we great to do digital marketing and search engine optimization work as per google rule and regulation....

previous arrowprevious arrow
next arrownext arrow

Hide Admin Menu Based on System Config in Magento 2

Spread the love

Here, we will learn how to hide the admin menu based on the module enable and disable from system configuration.

Follow the below steps to achieve this:

Add the below code into your existing menu.xml

File path: app\code\Vendor\Extension\etc\adminhtml\menu.xml

<?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>
        <add id="Vendor_Extension::extensionmenu" title=" Extension Menu" module="Vendor_Extension" sortOrder="10" resource="Vendor_Extension::mainmenu" dependsOnConfig="section/group/field"/>
    </menu>
</config>

let us know via the comment box if you need any help on this, we will be happy to solve it! Do share the article with your friends and stay updated with us.

Scroll to Top