1
是否有一个很好的教程或例子,如何创建一个新的管理菜单项?我已经设法创建了一个新项目,但现在我很难过。如何使用Magento的列表和编辑视图来显示和编辑数据?Magento:添加到管理菜单
是否有一个很好的教程或例子,如何创建一个新的管理菜单项?我已经设法创建了一个新项目,但现在我很难过。如何使用Magento的列表和编辑视图来显示和编辑数据?Magento:添加到管理菜单
任何模块的应用程序/代码/本地/命名空间/模块/ etc/config.xml文件负责管理菜单。下面的代码片段添加在Magento管理区自定义菜单选项的模块调用调查: -
<adminhtml>
<menu>
<survey module="survey">
<title>Survey</title>
<sort_order>100</sort_order>
<children>
<surveybackend module="survey">
<title>Stats</title>
<sort_order>0</sort_order>
<action>admin_survey/adminhtml_surveybackend</action>
</surveybackend>
<survey module="survey">
<title>Manage Survey</title>
<sort_order>0</sort_order>
<action>admin_survey/adminhtml_survey</action>
</survey>
<question module="survey">
<title>Manage Question</title>
<sort_order>10</sort_order>
<action>admin_survey/adminhtml_question</action>
</question>
</children>
</survey>
</menu>
<acl>
<resources>
<all>
<title>Allow Everything</title>
</all>
<admin>
<children>
<survey translate="title" module="survey">
<title>Survey</title>
<sort_order>1000</sort_order>
<children>
<surveybackend translate="title">
<title>Stats</title>
</surveybackend>
<survey translate="title">
<title>Manage Survey</title>
<sort_order>0</sort_order>
</survey>
<question translate="title">
<title>Manage Question</title>
<sort_order>10</sort_order>
</question>
</children>
</survey>
</children>
</admin>
</resources>
</acl>
<layout>
<updates>
<survey>
<file>survey.xml</file>
</survey>
</updates>
</layout>
下面是截图:
而且它能够更好地参考一些简单的自定义扩展或模块的magento或者你可以在这里生成你自己的模块: -
http://www.silksoftware.com/magento-module-creator/
随意点击并尝试各种选项。这里生成的模块将提供一个更好的想法,即如何生成菜单并链接到其受尊敬的页面,网格等。