0

I have a block in an XML file, and I want to hide it if a specific module doesn't enable (for example Mymodule2), how can I do it please, is there an attribute should I add it or not

<block ifconfig="zendesk/ticket/backend/order_view"
                       class="Vendor\Mymodule\Block\Adminhtml\Order\View\Tab\Info"
                       name="some_name"
                       aclResource="Vendor_Mymodule:myresource"/>

1 Answer 1

0

Please check the code.

<block class="Magento\Framework\View\Element\Html\Link\Current" ifconfig="contact/contact/enabled" name="contact-us-link"/>

You need to add ifconfig and path of the extension enabled so it will work for you.

Happy Coding.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.