Created folders and added code for the custom module but nothing gonna work in my way please help, nothing shown up in the admin panel. Here's my code and folders that I created:




 * Copyright © 2015 Magento. All rights reserved.
 * See COPYING.txt for license details.



    "name": "test/banners",
    "description": "Test Banner For test",
    "require": {
        "php": "~5.5.0|~5.6.0|~7.0.0",
        "magento/framework": "100.0.*"
    "type": "magento2-module",
    "version": "1.0.0",
    "license": [
    "autoload": {
        "files": [
        "psr-4": {
            "Test\\Banners\\": ""


<?xml version="1.0"?>
 * Copyright © 2015 Magento. All rights reserved.
 * See COPYING.txt for license details.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Test_Banners" setup_version="2.0.0">


what steps I would take to show this module in the admin panel?

  • Hey John, you didn't add any feature to be displayed.. What exactly you are trying to do/add? Can you check if It is showing under setup_module table in configured database? Sep 22, 2018 at 10:23
  • yes its showing there Sep 22, 2018 at 11:29

2 Answers 2


As per your question you just have added module file which requires it to run. So when you run module:enable it will just enable your module. But right now there is nothing to execute in your module.

So to add you module in admin, you need to add menu.xml in etc/adminhtml/menu.xml and there you need to define your menu and action path for menu.

And this way you need to add controller, block, layout, ui_component and template as per your need. here you can find detailed information for creating menu and other essential things.

  • hello, m created menu.xml file as well and run php -f bin/magento cache:clean command but nothing still shown in admin panel. Sep 22, 2018 at 11:25
  • Then you must be missing small thing please check that link.
    – Kumar M
    Sep 22, 2018 at 11:51
  • module add successfully now I want to add some customization in that page, So I need to add new pages for showing data? Sep 22, 2018 at 12:01
  • Is that page is Magento default or you want to add your own thing ? If you want to add your own thing then please do Google "create admin grid and form in Magento 2" you will get some results that will explain you how to develop it.
    – Kumar M
    Sep 22, 2018 at 12:19
  • And please upvote my answer
    – Kumar M
    Sep 22, 2018 at 12:20

Can you add menu.xml with below code:

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
        <add id="Vendor_Module::test" title="Test Title" module="Vendor_Module" sortOrder="50" parent="Magento_Backend::marketing" resource="Vendor_Module::test" />
        <add id="Vendor_Module::test_child" title="Settings" module="Vendor_Module" sortOrder="3" action="set action here" parent="Vendor_Module::test" resource="Vendor_Module::test_child"/>

Update Vendor_Module with your module name and check if it adds a menu under the Marketing tab.

  • yes: <?xml version="1.0"?> <config xmlns:xsi="w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd"> <menu> <add id="Banner_id::first_level_demo" title="Banner First Level" module="Banner_MenuItem" sortOrder="9999" resource="Magento_Backend::content" /> </menu> </config> Sep 22, 2018 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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