Magento User Module: How to Create an Admin Menu

Finder Setting 

What should be the URL to go to the system / configuration of our custom module from the settings of the administrator menu.

 <menu> <finder module="finder"> <title>finder</title> <sort_order>71</sort_order> <children> <items module="finder"> <title>Manage Finder</title> <sort_order>0</sort_order> <action>finder/adminhtml_finder</action> </items> <items module="finder"> <title>Setting</title> <sort_order>0</sort_order> <action> ???? </action> </items> </children> </finder> </menu> 
+5
source share
5 answers

Jack, you can give an action similar to the following:

 <action>adminhtml/system_config/edit/section/your menu item</action> 

http://inchoo.net/ecommerce/magento/create-configuration-for-your-magento-extension/ , this is one of the good examples.

+2
source

You can take, as shown below, to add to the system configuration directory. and you need to create system.xml

 <?xml version="1.0"?> <config> <tabs> <helloconfig translate="label" module="todaydeal"> <label>Today Deal</label> <sort_order>99999</sort_order> </helloconfig> </tabs> <sections> <catalog> <groups> <todaydeal translate="label" module="todaydeal"> <label>Daily Deal</label> <frontend_type>text</frontend_type> <sort_order>1000</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>1</show_in_store> <fields> <active translate="label"> <label>Enabled</label> <frontend_type>select</frontend_type> <source_model>adminhtml/system_config_source_yesno</source_model> <sort_order>1</sort_order> <show_in_default>1</show_in_default> <show_in_website>1</show_in_website> <show_in_store>0</show_in_store> </active> </fields> </todaydeal> </groups> </catalog> </sections> </config> 

you can also refer to the Document LINK section, I'm sure that I will help you a lot.

let me know if i can help you further

+1
source

You can use the following code to create an administrative menu, as well as actions to perform a system / configuration. Add the following code to app / code / local / [Name_Space] / [Module_Name] /etc/config.xml

  <adminhtml> <menu>         <news module="news">            <title>News</title>            <sort_order>71</sort_order>                         <children>               <items module="news">                  <title>Manage Items</title>                  <sort_order>0</sort_order>                  <action>news/adminhtml_news</action>               </items>                   <items1 module="news">                       <title>Import News Data</title>                       <sort_order>1</sort_order>                       <action>adminhtml/system_config/edit/section/news</action>                   </items1>            </children>         </news>      </menu> </adminhtml> 

Please note that here the news will be the same as the section name in the system.xml file.

+1
source

Hi Add the following code instead of <itmes> .

  <config module="finder"> <title>Configurations</title> <sort_order>10</sort_order> <action>adminhtml/system_config/edit/section/finder</action> </config> Write down ACL code after the </menu> ending tag. Your code will be like this <acl> <resources> <all> <title>Allow Everything</title> </all> <admin> <children> <My_module> <title>My finder Module</title> <sort_order>10</sort_order> </My_module> <system> <children> <config> <children> <finder> <title>finder Module Section</title> </finder> </children> </config> </children> </system> </children> </admin> </resources> </acl> 
+1
source

You can refer to the link below to create an admin menu in Magento2: https://github.com/jainmegha5395/admin-menu

Explanation:

You need to create the menu.xml file inside \ etc \ adminhtml \ of your module.

Add below code inside <menu> .

  <add id="Custom_Module::custom" title="CUSTOM" translate="title" module="Custom_Module" sortOrder="90" dependsOnModule="Custom_Module" resource="Custom_Module::custom"/> <add id="Custom_Module::news" title="News" translate="title" module="Custom_Module" parent="Custom_Module::custom" sortOrder="50" dependsOnModule="Custom_Module" resource="Custom_Module::news"/> 

This code will create a menu called NEWS which will be called CUSTOM .

0
source

Source: https://habr.com/ru/post/1489841/


All Articles