Magento自定义模块:如何创建管理菜单

Jac*_*ris 5 magento

Finder
Setting
Run Code Online (Sandbox Code Playgroud)

从管理菜单设置转到自定义模块的系统/配置的网址应该是什么。

<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>
Run Code Online (Sandbox Code Playgroud)

liy*_*kat 1

您可以按照如下方式添加到系统配置目录中。你必须创建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>
Run Code Online (Sandbox Code Playgroud)

您还可以参考详细文档链接,我相信我会对您很有帮助。

如果我可以进一步帮助您,请告诉我