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;
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
screenshot of my code
magento2 theme custom menu custom-menu
add a comment |
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
screenshot of my code
magento2 theme custom menu custom-menu
Post your code formenu.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
add a comment |
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
screenshot of my code
magento2 theme custom menu custom-menu
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
screenshot of my code
magento2 theme custom menu custom-menu
magento2 theme custom menu custom-menu
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 formenu.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
add a comment |
Post your code formenu.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
add a comment |
3 Answers
3
active
oldest
votes
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.
add a comment |
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.
add a comment |
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
add a comment |
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.
add a comment |
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.
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.
answered Jun 22 '18 at 7:06
mighty_hkmighty_hk
5221 silver badge11 bronze badges
5221 silver badge11 bronze badges
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
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
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
edited Jun 22 '18 at 10:31
answered Jun 22 '18 at 7:22
Amit Bera♦Amit Bera
63.2k16 gold badges85 silver badges183 bronze badges
63.2k16 gold badges85 silver badges183 bronze badges
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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