How do I add this sub menu button?

The button when clicked basically shows a table, that's about it for now. I'm quite new to magento and it would help if you can explain at least a little bit.

How to get to the button

how to get this button?

What it can look like after clicking the button. For now, just the table would suffice. (ignore the table headings at the moment since I'm just trying it out on the Luma theme.)

what the table can look like

  • Could you reconfirm what you want to achieve ? Do you want to add a menu item or do you want to add a sub menu item in the admin panel ? – nikin Jul 18 '18 at 5:10
  • A submenu item in the admin panel. Thanks, ill make it more clear. – ralp930 Jul 18 '18 at 5:16

This menus or submenus are the entry point of the respective module. If you want to add just submenu then update menu.xml file of respective module (note: Don't mess with core modules." please create your own module") and this menu and submenus are defined in the menu.xml file located at "Namespace/Module/etc/adminhtml/menu.xml"


<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
            <!--for menu-->
        <add id="Cloudways_Adminmenu::first_level_demo"
             title="Cloudways Admin Menu"
           <!--for submenu-->
        <add id="Cloudways_Adminmenu::second_level_demo"
             title="Sub Menu"

ok,thats it, it may help you

  • Thanks! Made the panel already. But how do i set the table (or make page) once the button is clicked? – ralp930 Jul 18 '18 at 6:49
  • in your module, there is a 'block/adminhtml/modulename/edit/grid' folder.this folder contains all files of that table. if you not created it so just follow steps to create 'grid' at admin side – kaustubh borate Jul 18 '18 at 9:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.