While extending the backend, it is important to make sure that the user can easily navigate to your customized pages. The only alternative that you can use for this is to extend the Admin menu with your own items. With the Magento framework, it is possible to add menu items at every level in that menu.
For this recipe, the only task that we have to do is add the right configuration, which is in the adminhtml.xml
file, into the etc
folder of the Packt_Helloworld
module.
The following steps describe how you can add an extra menu item to the Admin menu:
The first thing that we have to think about is where will we place an extra menu item in the Admin menu. For this test, we will place it under the System menu. Keep the system ID in mind. We have to use this for the menu configuration.
The second thing is to add the configuration in the
adminhtml.xml
file. Paste the following code under theconfig
tag:<menu> <system> <children>...