Magento 2 : my custom menu is not displayed in admin panelMagento Admin Menu developmentmagento 2 custom module is not listing in admin panelUser with custom role cannot access custom menu item in Magento 2 admin interfaceMagento 2.x - Menu not showing for custom role in custom moduleCannot add admin menu - composer moduleCan't add menu item in admin menu in magento 2Magento 2 - Modify default Admin Logo (login and backend menu) with Custom Themewant to add custom module in magento 2 admin panelNew menu does not appear in admin panel - Magento 2

Did ancient peoples ever hide their treasure behind puzzles?

Half filled water bottle

Can someone identify this unusual plane at airport?

Force SQL Server to use fragmented indexes?

How to say "I only speak one which is English." in French?

What are the IPSE’s, the ASPE’s, the FRIPSE’s and the GRIPSE’s?

Why does this London Underground poster from 1924 have a Star of David atop a Christmas tree?

Can I take a boxed bicycle on a German train?

Why didn't Doc believe Marty was from the future?

Term used to describe a person who predicts future outcomes

Does the Reduce option from the Enlarge/Reduce spell cause a critical hit to do 2d4 less damage?

Recommended Breathing Exercises to Play Woodwinds

Was a star-crossed lover

Is there any problem with a full installation on a USB drive?

If I said I had $100 when asked, but I actually had $200, would I be lying by omission?

Does trying to charm an uncharmable creature cost a spell slot?

How do we improve collaboration with problematic tester team?

rationalizing sieges in a modern/near-future setting

Availability Groups automatic failover is not so automatic

Counting the triangles that can be formed from segments of given lengths

Find most "academic" implementation of doubly linked list

Why can't UK MPs vote for the Withdrawal Agreement, then renege on the backstop if it comes to that?

Does NASA use any type of office/groupware software and which is that?

Is it unusual for a math department not to have a mail/web server?



Magento 2 : my custom menu is not displayed in admin panel


Magento Admin Menu developmentmagento 2 custom module is not listing in admin panelUser with custom role cannot access custom menu item in Magento 2 admin interfaceMagento 2.x - Menu not showing for custom role in custom moduleCannot add admin menu - composer moduleCan't add menu item in admin menu in magento 2Magento 2 - Modify default Admin Logo (login and backend menu) with Custom Themewant to add custom module in magento 2 admin panelNew menu does not appear in admin panel - Magento 2






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I was creating a custom menu in Magento 2 but this was not being shown!



file location:
Magento2Root/app/code/Cloudways/Adminmenu/registration.php



other files:module.xml



third file: menu.xml
enter image description here



screenshot of my code










share|improve this question


























  • Post your code for menu.xml and provide path where you have created it.

    – Vivek
    Jun 22 '18 at 7:24











  • path menu.xml [ Magento2Root/app/code/Cloudways/Adminmenu/menu.xml ] and code show my screen shot

    – shohel hussain
    Jun 22 '18 at 12:43


















0















I was creating a custom menu in Magento 2 but this was not being shown!



file location:
Magento2Root/app/code/Cloudways/Adminmenu/registration.php



other files:module.xml



third file: menu.xml
enter image description here



screenshot of my code










share|improve this question


























  • Post your code for menu.xml and provide path where you have created it.

    – Vivek
    Jun 22 '18 at 7:24











  • path menu.xml [ Magento2Root/app/code/Cloudways/Adminmenu/menu.xml ] and code show my screen shot

    – shohel hussain
    Jun 22 '18 at 12:43














0












0








0








I was creating a custom menu in Magento 2 but this was not being shown!



file location:
Magento2Root/app/code/Cloudways/Adminmenu/registration.php



other files:module.xml



third file: menu.xml
enter image description here



screenshot of my code










share|improve this question
















I was creating a custom menu in Magento 2 but this was not being shown!



file location:
Magento2Root/app/code/Cloudways/Adminmenu/registration.php



other files:module.xml



third file: menu.xml
enter image description here



screenshot of my code







magento2 theme custom menu custom-menu






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 15 at 7:27









Agilox

1377 bronze badges




1377 bronze badges










asked Jun 22 '18 at 7:01









shohel hussainshohel hussain

2312 bronze badges




2312 bronze badges















  • Post your code for menu.xml and provide path where you have created it.

    – Vivek
    Jun 22 '18 at 7:24











  • path menu.xml [ Magento2Root/app/code/Cloudways/Adminmenu/menu.xml ] and code show my screen shot

    – shohel hussain
    Jun 22 '18 at 12:43


















  • Post your code for menu.xml and provide path where you have created it.

    – Vivek
    Jun 22 '18 at 7:24











  • path menu.xml [ Magento2Root/app/code/Cloudways/Adminmenu/menu.xml ] and code show my screen shot

    – shohel hussain
    Jun 22 '18 at 12:43

















Post your code for menu.xml and provide path where you have created it.

– Vivek
Jun 22 '18 at 7:24





Post your code for menu.xml and provide path where you have created it.

– Vivek
Jun 22 '18 at 7:24













path menu.xml [ Magento2Root/app/code/Cloudways/Adminmenu/menu.xml ] and code show my screen shot

– shohel hussain
Jun 22 '18 at 12:43






path menu.xml [ Magento2Root/app/code/Cloudways/Adminmenu/menu.xml ] and code show my screen shot

– shohel hussain
Jun 22 '18 at 12:43











3 Answers
3






active

oldest

votes


















1















Make sure that your module.xml is in the path - Magento2Root/app/code/Cloudways/Adminmenu/etc and menu.xml is in the path - Magento2Root/app/code/Cloudways/Adminmenu/etc/adminhtml



If this doesn't help then edit your question and add content of all the 3 files so that People can answer that.






share|improve this answer
































    1















    Please verify that the path of menu.xml should be app/code/Cloudways/Adminmenu/etc/adminhtml/menu.xml.



    Apart from that, if you are checking the menu item from a user with restricted permission role, then you must specify acl.xml in your module under app/code/Cloudways/Adminmenu/etc/acl.xml.



    Edit: If you are having trouble in finding the cause of issue, then retry with the steps below:




    Step 1: Create app/code/Stack/Adminmenu/registration.php and put the following content




    <?php
    MagentoFrameworkComponentComponentRegistrar::register(
    MagentoFrameworkComponentComponentRegistrar::MODULE,
    'Stack_Adminmenu',
    __DIR__
    );



    Step 2: Create app/code/Stack/Adminmenu/etc/module.xml and put the following code




    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="Stack_Adminmenu" setup_version="0.1.0">
    </module>
    </config>



    Step 3: Create app/code/Stack/Adminmenu/etc/adminhtml/menu.xml and put the following code




    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
    <menu>
    <add id="Stack_Adminmenu::first_level_demo"
    title="Admin Menu"
    module="Stack_Adminmenu"
    sortOrder="20"
    resource="Magento_Backend::content"
    />
    <add id="Stack_Adminmenu::second_level_demo"
    title="Sub Menu"
    module="Stack_Adminmenu"
    sortOrder="1"
    action="menuitem/index/index"
    parent="Stack_Adminmenu::first_level_demo"
    resource="Magento_Backend::content"
    />
    </menu>
    </config>


    Remember to define and create the controller class for the action where you are redirecting on clicking on the menu item.






    share|improve this answer


































      1















      You have to create ACL acl.xml



      • app/code/Cloudways/Adminmenu/etc/acl.xml

      Also menu.xml should be under



      • app/code/Cloudways/Adminmenu/etc/adminhtml/menu.xml





      share|improve this answer





























        Your Answer








        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "479"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        StackExchange.ready(
        function ()
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f230957%2fmagento-2-my-custom-menu-is-not-displayed-in-admin-panel%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        1















        Make sure that your module.xml is in the path - Magento2Root/app/code/Cloudways/Adminmenu/etc and menu.xml is in the path - Magento2Root/app/code/Cloudways/Adminmenu/etc/adminhtml



        If this doesn't help then edit your question and add content of all the 3 files so that People can answer that.






        share|improve this answer





























          1















          Make sure that your module.xml is in the path - Magento2Root/app/code/Cloudways/Adminmenu/etc and menu.xml is in the path - Magento2Root/app/code/Cloudways/Adminmenu/etc/adminhtml



          If this doesn't help then edit your question and add content of all the 3 files so that People can answer that.






          share|improve this answer



























            1














            1










            1









            Make sure that your module.xml is in the path - Magento2Root/app/code/Cloudways/Adminmenu/etc and menu.xml is in the path - Magento2Root/app/code/Cloudways/Adminmenu/etc/adminhtml



            If this doesn't help then edit your question and add content of all the 3 files so that People can answer that.






            share|improve this answer













            Make sure that your module.xml is in the path - Magento2Root/app/code/Cloudways/Adminmenu/etc and menu.xml is in the path - Magento2Root/app/code/Cloudways/Adminmenu/etc/adminhtml



            If this doesn't help then edit your question and add content of all the 3 files so that People can answer that.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 22 '18 at 7:06









            mighty_hkmighty_hk

            5221 silver badge11 bronze badges




            5221 silver badge11 bronze badges


























                1















                Please verify that the path of menu.xml should be app/code/Cloudways/Adminmenu/etc/adminhtml/menu.xml.



                Apart from that, if you are checking the menu item from a user with restricted permission role, then you must specify acl.xml in your module under app/code/Cloudways/Adminmenu/etc/acl.xml.



                Edit: If you are having trouble in finding the cause of issue, then retry with the steps below:




                Step 1: Create app/code/Stack/Adminmenu/registration.php and put the following content




                <?php
                MagentoFrameworkComponentComponentRegistrar::register(
                MagentoFrameworkComponentComponentRegistrar::MODULE,
                'Stack_Adminmenu',
                __DIR__
                );



                Step 2: Create app/code/Stack/Adminmenu/etc/module.xml and put the following code




                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                <module name="Stack_Adminmenu" setup_version="0.1.0">
                </module>
                </config>



                Step 3: Create app/code/Stack/Adminmenu/etc/adminhtml/menu.xml and put the following code




                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
                <menu>
                <add id="Stack_Adminmenu::first_level_demo"
                title="Admin Menu"
                module="Stack_Adminmenu"
                sortOrder="20"
                resource="Magento_Backend::content"
                />
                <add id="Stack_Adminmenu::second_level_demo"
                title="Sub Menu"
                module="Stack_Adminmenu"
                sortOrder="1"
                action="menuitem/index/index"
                parent="Stack_Adminmenu::first_level_demo"
                resource="Magento_Backend::content"
                />
                </menu>
                </config>


                Remember to define and create the controller class for the action where you are redirecting on clicking on the menu item.






                share|improve this answer































                  1















                  Please verify that the path of menu.xml should be app/code/Cloudways/Adminmenu/etc/adminhtml/menu.xml.



                  Apart from that, if you are checking the menu item from a user with restricted permission role, then you must specify acl.xml in your module under app/code/Cloudways/Adminmenu/etc/acl.xml.



                  Edit: If you are having trouble in finding the cause of issue, then retry with the steps below:




                  Step 1: Create app/code/Stack/Adminmenu/registration.php and put the following content




                  <?php
                  MagentoFrameworkComponentComponentRegistrar::register(
                  MagentoFrameworkComponentComponentRegistrar::MODULE,
                  'Stack_Adminmenu',
                  __DIR__
                  );



                  Step 2: Create app/code/Stack/Adminmenu/etc/module.xml and put the following code




                  <?xml version="1.0"?>
                  <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                  <module name="Stack_Adminmenu" setup_version="0.1.0">
                  </module>
                  </config>



                  Step 3: Create app/code/Stack/Adminmenu/etc/adminhtml/menu.xml and put the following code




                  <?xml version="1.0"?>
                  <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
                  <menu>
                  <add id="Stack_Adminmenu::first_level_demo"
                  title="Admin Menu"
                  module="Stack_Adminmenu"
                  sortOrder="20"
                  resource="Magento_Backend::content"
                  />
                  <add id="Stack_Adminmenu::second_level_demo"
                  title="Sub Menu"
                  module="Stack_Adminmenu"
                  sortOrder="1"
                  action="menuitem/index/index"
                  parent="Stack_Adminmenu::first_level_demo"
                  resource="Magento_Backend::content"
                  />
                  </menu>
                  </config>


                  Remember to define and create the controller class for the action where you are redirecting on clicking on the menu item.






                  share|improve this answer





























                    1














                    1










                    1









                    Please verify that the path of menu.xml should be app/code/Cloudways/Adminmenu/etc/adminhtml/menu.xml.



                    Apart from that, if you are checking the menu item from a user with restricted permission role, then you must specify acl.xml in your module under app/code/Cloudways/Adminmenu/etc/acl.xml.



                    Edit: If you are having trouble in finding the cause of issue, then retry with the steps below:




                    Step 1: Create app/code/Stack/Adminmenu/registration.php and put the following content




                    <?php
                    MagentoFrameworkComponentComponentRegistrar::register(
                    MagentoFrameworkComponentComponentRegistrar::MODULE,
                    'Stack_Adminmenu',
                    __DIR__
                    );



                    Step 2: Create app/code/Stack/Adminmenu/etc/module.xml and put the following code




                    <?xml version="1.0"?>
                    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                    <module name="Stack_Adminmenu" setup_version="0.1.0">
                    </module>
                    </config>



                    Step 3: Create app/code/Stack/Adminmenu/etc/adminhtml/menu.xml and put the following code




                    <?xml version="1.0"?>
                    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
                    <menu>
                    <add id="Stack_Adminmenu::first_level_demo"
                    title="Admin Menu"
                    module="Stack_Adminmenu"
                    sortOrder="20"
                    resource="Magento_Backend::content"
                    />
                    <add id="Stack_Adminmenu::second_level_demo"
                    title="Sub Menu"
                    module="Stack_Adminmenu"
                    sortOrder="1"
                    action="menuitem/index/index"
                    parent="Stack_Adminmenu::first_level_demo"
                    resource="Magento_Backend::content"
                    />
                    </menu>
                    </config>


                    Remember to define and create the controller class for the action where you are redirecting on clicking on the menu item.






                    share|improve this answer















                    Please verify that the path of menu.xml should be app/code/Cloudways/Adminmenu/etc/adminhtml/menu.xml.



                    Apart from that, if you are checking the menu item from a user with restricted permission role, then you must specify acl.xml in your module under app/code/Cloudways/Adminmenu/etc/acl.xml.



                    Edit: If you are having trouble in finding the cause of issue, then retry with the steps below:




                    Step 1: Create app/code/Stack/Adminmenu/registration.php and put the following content




                    <?php
                    MagentoFrameworkComponentComponentRegistrar::register(
                    MagentoFrameworkComponentComponentRegistrar::MODULE,
                    'Stack_Adminmenu',
                    __DIR__
                    );



                    Step 2: Create app/code/Stack/Adminmenu/etc/module.xml and put the following code




                    <?xml version="1.0"?>
                    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
                    <module name="Stack_Adminmenu" setup_version="0.1.0">
                    </module>
                    </config>



                    Step 3: Create app/code/Stack/Adminmenu/etc/adminhtml/menu.xml and put the following code




                    <?xml version="1.0"?>
                    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../Backend/etc/menu.xsd">
                    <menu>
                    <add id="Stack_Adminmenu::first_level_demo"
                    title="Admin Menu"
                    module="Stack_Adminmenu"
                    sortOrder="20"
                    resource="Magento_Backend::content"
                    />
                    <add id="Stack_Adminmenu::second_level_demo"
                    title="Sub Menu"
                    module="Stack_Adminmenu"
                    sortOrder="1"
                    action="menuitem/index/index"
                    parent="Stack_Adminmenu::first_level_demo"
                    resource="Magento_Backend::content"
                    />
                    </menu>
                    </config>


                    Remember to define and create the controller class for the action where you are redirecting on clicking on the menu item.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jun 22 '18 at 7:43

























                    answered Jun 22 '18 at 7:26









                    Mohit Kumar AroraMohit Kumar Arora

                    7,4815 gold badges17 silver badges36 bronze badges




                    7,4815 gold badges17 silver badges36 bronze badges
























                        1















                        You have to create ACL acl.xml



                        • app/code/Cloudways/Adminmenu/etc/acl.xml

                        Also menu.xml should be under



                        • app/code/Cloudways/Adminmenu/etc/adminhtml/menu.xml





                        share|improve this answer































                          1















                          You have to create ACL acl.xml



                          • app/code/Cloudways/Adminmenu/etc/acl.xml

                          Also menu.xml should be under



                          • app/code/Cloudways/Adminmenu/etc/adminhtml/menu.xml





                          share|improve this answer





























                            1














                            1










                            1









                            You have to create ACL acl.xml



                            • app/code/Cloudways/Adminmenu/etc/acl.xml

                            Also menu.xml should be under



                            • app/code/Cloudways/Adminmenu/etc/adminhtml/menu.xml





                            share|improve this answer















                            You have to create ACL acl.xml



                            • app/code/Cloudways/Adminmenu/etc/acl.xml

                            Also menu.xml should be under



                            • app/code/Cloudways/Adminmenu/etc/adminhtml/menu.xml






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Jun 22 '18 at 10:31

























                            answered Jun 22 '18 at 7:22









                            Amit BeraAmit Bera

                            63.2k16 gold badges85 silver badges183 bronze badges




                            63.2k16 gold badges85 silver badges183 bronze badges






























                                draft saved

                                draft discarded
















































                                Thanks for contributing an answer to Magento Stack Exchange!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid


                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.

                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f230957%2fmagento-2-my-custom-menu-is-not-displayed-in-admin-panel%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

                                Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

                                Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form