Magento 2 – How to add Admin System configuration link to menu section

Adding Admin System configuration link to menu section iis easy with below code.

For example, I have created one main menu for my module(called Jute). I need to add admin system configuration link to my menu . Using below script we can do the setup.

Sample File Path : app\code\Jute\Lorem\etc\adminhtml\menu.xml

<?xml version=”1.0″?>
<config xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Backend:etc/menu.xsd”>
<menu>
<add id=”Jute_Lorem::loremmoduleconfig” title=”Jute Configuration” sortOrder=”10″ module=”Jute_Lorem” parent=”Jute_Lorem::jute” action=”adminhtml/system_config/edit/section/<action>” resource=”Jute_Lorem::juteconfiguration”/>
</menu>
</config>

 

Respect Water !!! Save Water !!!

Leave a comment