如何在magento管理面板中添加菜单?

Nat*_*ivi 0 magento magento-1.7

我正在寻找有关如何执行以下操作的一些建议或信息.我想在magento管理面板中添加一个菜单.我正在尝试很多方法,但没有工作.如何在管理面板中添加额外的一个菜单.请指教...

小智 6

如果这是您的自定义模块,您需要在etc/config.xml中添加以下内容:

<adminhtml>
  <menu>
      <report>
        <children>
          <module name>
            <title>Title to show in the menu bar</title>
            <sort_order>0</sort_order>
            <action>Modules controller action</action>
          </module name>
        </children>
      </report>
    </menu>
 </adminhtml>
Run Code Online (Sandbox Code Playgroud)

上面的示例将向报表选项卡添加一个新项目,并在控制器中触发操作以执行某些操作.希望这可以帮助.