在magento模块的etc目录下增加adminhtml.xml配置文件,用于加入自定义的菜单项,文件内容如下:
<?xml version="1.0"?>
<config>
<menu>
<!– 父菜单项标识,此处是在标题为Customers的菜单下加入子菜单–>
<!– Magento一级管理菜单标识和显示标题–>
<!–
dashboard =>Dashboard
catalog=>Catalog
sales=>Sales
customer=>Customers
newsletter=>Newsletter
cms=>CMS
report=>Reports
–>
<customer>
<children>
<!–子菜单标识符–>
<message translate="title" module="customermessage">
<title>Customer Message</title>
<!–点击菜单时执行的动作,
此处将执行controller/adminhtml目录下的messageController默认的action
–>
<action>adminhtml/message</action>
<sort_order>120</sort_order>
</message>
</children>
</customer>
</menu>
<!–加入权限列表–>
<acl>
<resources>
<admin>
<children>
<customer>
<children>
<message translate="title" module="customermessage">
<title>Customer Message</title>
<sort_order>120</sort_order>
</message>
</children>
</customer>
</children>
</admin>
</resources>
</acl>
</config> (责任编辑:最模板) |