Magento 2: Admin panel 3 level menu structure not workingRemove top drop menu extension items from admin...
"You are your self first supporter", a more proper way to say it
Is there a minimum number of transactions in a block?
Infinite past with a beginning?
Pronouncing Dictionary.com's W.O.D "vade mecum" in English
DOS, create pipe for stdin/stdout of command.com(or 4dos.com) in C or Batch?
How can bays and straits be determined in a procedurally generated map?
How to add power-LED to my small amplifier?
Are tax years 2016 & 2017 back taxes deductible for tax year 2018?
Draw simple lines in Inkscape
How can the DM most effectively choose 1 out of an odd number of players to be targeted by an attack or effect?
Copycat chess is back
What do you call a Matrix-like slowdown and camera movement effect?
Japan - Plan around max visa duration
What is the offset in a seaplane's hull?
Why has Russell's definition of numbers using equivalence classes been finally abandoned? ( If it has actually been abandoned).
Email Account under attack (really) - anything I can do?
Why is the design of haulage companies so “special”?
Do airline pilots ever risk not hearing communication directed to them specifically, from traffic controllers?
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
How does one intimidate enemies without having the capacity for violence?
What defenses are there against being summoned by the Gate spell?
What would the Romans have called "sorcery"?
Set-theoretical foundations of Mathematics with only bounded quantifiers
What are these boxed doors outside store fronts in New York?
Magento 2: Admin panel 3 level menu structure not working
Remove top drop menu extension items from admin panelMagento Admin Menu doesn't workCustom admin menu item not displayingMagento2: Sub-menu is not appearing in adminUnable to create menu in magento admin panelmagento 1.9 Admin menus are not workingMagento 2: MegaMenu extension's menu is not displaying in admin backendMagento 2 admin menu not working XamppSubsection in admin menuMagento 2.3.0 admin panel issue
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I am trying to add a menu for my module in admin panel. I want to add it like Grand Parent > Parent > Child
structure.
I have used below code in my 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">
<menu>
<add id="Vendor_Module::jsutariya" title="Grand Parent" module="Vendor_Module" sortOrder="100" resource="Vendor_Module::jsutariya" />
<add id="Vendor_Module::listgallery" title="Parent" module="Vendor_Module" sortOrder="10" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
<add id="Vendor_Module::settings" title="Child" module="Vendor_Module"
sortOrder="40" action="adminhtml/system_config/edit/section/list_gallery"
resource="Vendor_Module::settings" parent="Vendor_Module::listgallery"/>
</menu>
</config>
But I can only see Grand parent and child menus. Please check below screenshot.
magento2.3.0 adminmenu
add a comment |
I am trying to add a menu for my module in admin panel. I want to add it like Grand Parent > Parent > Child
structure.
I have used below code in my 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">
<menu>
<add id="Vendor_Module::jsutariya" title="Grand Parent" module="Vendor_Module" sortOrder="100" resource="Vendor_Module::jsutariya" />
<add id="Vendor_Module::listgallery" title="Parent" module="Vendor_Module" sortOrder="10" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
<add id="Vendor_Module::settings" title="Child" module="Vendor_Module"
sortOrder="40" action="adminhtml/system_config/edit/section/list_gallery"
resource="Vendor_Module::settings" parent="Vendor_Module::listgallery"/>
</menu>
</config>
But I can only see Grand parent and child menus. Please check below screenshot.
magento2.3.0 adminmenu
add a comment |
I am trying to add a menu for my module in admin panel. I want to add it like Grand Parent > Parent > Child
structure.
I have used below code in my 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">
<menu>
<add id="Vendor_Module::jsutariya" title="Grand Parent" module="Vendor_Module" sortOrder="100" resource="Vendor_Module::jsutariya" />
<add id="Vendor_Module::listgallery" title="Parent" module="Vendor_Module" sortOrder="10" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
<add id="Vendor_Module::settings" title="Child" module="Vendor_Module"
sortOrder="40" action="adminhtml/system_config/edit/section/list_gallery"
resource="Vendor_Module::settings" parent="Vendor_Module::listgallery"/>
</menu>
</config>
But I can only see Grand parent and child menus. Please check below screenshot.
magento2.3.0 adminmenu
I am trying to add a menu for my module in admin panel. I want to add it like Grand Parent > Parent > Child
structure.
I have used below code in my 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">
<menu>
<add id="Vendor_Module::jsutariya" title="Grand Parent" module="Vendor_Module" sortOrder="100" resource="Vendor_Module::jsutariya" />
<add id="Vendor_Module::listgallery" title="Parent" module="Vendor_Module" sortOrder="10" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
<add id="Vendor_Module::settings" title="Child" module="Vendor_Module"
sortOrder="40" action="adminhtml/system_config/edit/section/list_gallery"
resource="Vendor_Module::settings" parent="Vendor_Module::listgallery"/>
</menu>
</config>
But I can only see Grand parent and child menus. Please check below screenshot.
magento2.3.0 adminmenu
magento2.3.0 adminmenu
asked 17 hours ago
Jaimin SutariyaJaimin Sutariya
9,40522055
9,40522055
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
Honestly, I didn't give the proper answer to your question. But found a way to show the parent menu. Actually, Magento is hiding First "parent" menu via CSS. So you need to add another parent menu and will display your previous parent menu.
Here is my code:
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Vendor_Module::jsutariya" title="Grand Parent" module="Vendor_Module" sortOrder="100" resource="Vendor_Module::jsutariya" />
<add id="Vendor_Module::jsutariya_listgallery" title="Parent" module="Vendor_Module" sortOrder="10" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
<add id="Vendor_Module::jsutariya_settings" title="Child" module="Vendor_Module"
sortOrder="40" action="adminhtml/system_config/edit/section/list_gallery"
resource="Vendor_Module::settings" parent="Vendor_Module::jsutariya_listgallery"/>
<add id="Vendor_Module::jsutariya_listgallery1" title="Another Parent" module="Vendor_Module" sortOrder="20" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
</menu>
</config>
The main culprit is the following CSS and I don't know why its added in the first place by Magento
.admin__menu .level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
display: none;
}
Thanks Shankar. I wonder why Magento kept it hidden. Users will get confused by this because they will only seeSettings
and will wonder to which module it is related to.
– Jaimin Sutariya
13 hours ago
add a comment |
You have to need change _menu.less for fix the child menu issue actually Admin Navigation Menu labels hide in css.
You can change below _menu.less file path and comment code which is already display:none.
File path:
magento/vendor/magento/theme-adminhtml-backend/Magento_Backend/web/css/source/module/_menu.less
// This part hides Submenu Group Titles only for menus with single groups.
/*.submenu .column:only-of-type .submenu-group-title,
.level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
display: none;
}*/
For more Details refer below links:
https://github.com/magento/magento2/issues/13707
https://github.com/magento/magento2/commit/d91e96b529e70dcec55d3b5336b471791dc42d54
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%2f269042%2fmagento-2-admin-panel-3-level-menu-structure-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Honestly, I didn't give the proper answer to your question. But found a way to show the parent menu. Actually, Magento is hiding First "parent" menu via CSS. So you need to add another parent menu and will display your previous parent menu.
Here is my code:
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Vendor_Module::jsutariya" title="Grand Parent" module="Vendor_Module" sortOrder="100" resource="Vendor_Module::jsutariya" />
<add id="Vendor_Module::jsutariya_listgallery" title="Parent" module="Vendor_Module" sortOrder="10" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
<add id="Vendor_Module::jsutariya_settings" title="Child" module="Vendor_Module"
sortOrder="40" action="adminhtml/system_config/edit/section/list_gallery"
resource="Vendor_Module::settings" parent="Vendor_Module::jsutariya_listgallery"/>
<add id="Vendor_Module::jsutariya_listgallery1" title="Another Parent" module="Vendor_Module" sortOrder="20" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
</menu>
</config>
The main culprit is the following CSS and I don't know why its added in the first place by Magento
.admin__menu .level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
display: none;
}
Thanks Shankar. I wonder why Magento kept it hidden. Users will get confused by this because they will only seeSettings
and will wonder to which module it is related to.
– Jaimin Sutariya
13 hours ago
add a comment |
Honestly, I didn't give the proper answer to your question. But found a way to show the parent menu. Actually, Magento is hiding First "parent" menu via CSS. So you need to add another parent menu and will display your previous parent menu.
Here is my code:
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Vendor_Module::jsutariya" title="Grand Parent" module="Vendor_Module" sortOrder="100" resource="Vendor_Module::jsutariya" />
<add id="Vendor_Module::jsutariya_listgallery" title="Parent" module="Vendor_Module" sortOrder="10" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
<add id="Vendor_Module::jsutariya_settings" title="Child" module="Vendor_Module"
sortOrder="40" action="adminhtml/system_config/edit/section/list_gallery"
resource="Vendor_Module::settings" parent="Vendor_Module::jsutariya_listgallery"/>
<add id="Vendor_Module::jsutariya_listgallery1" title="Another Parent" module="Vendor_Module" sortOrder="20" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
</menu>
</config>
The main culprit is the following CSS and I don't know why its added in the first place by Magento
.admin__menu .level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
display: none;
}
Thanks Shankar. I wonder why Magento kept it hidden. Users will get confused by this because they will only seeSettings
and will wonder to which module it is related to.
– Jaimin Sutariya
13 hours ago
add a comment |
Honestly, I didn't give the proper answer to your question. But found a way to show the parent menu. Actually, Magento is hiding First "parent" menu via CSS. So you need to add another parent menu and will display your previous parent menu.
Here is my code:
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Vendor_Module::jsutariya" title="Grand Parent" module="Vendor_Module" sortOrder="100" resource="Vendor_Module::jsutariya" />
<add id="Vendor_Module::jsutariya_listgallery" title="Parent" module="Vendor_Module" sortOrder="10" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
<add id="Vendor_Module::jsutariya_settings" title="Child" module="Vendor_Module"
sortOrder="40" action="adminhtml/system_config/edit/section/list_gallery"
resource="Vendor_Module::settings" parent="Vendor_Module::jsutariya_listgallery"/>
<add id="Vendor_Module::jsutariya_listgallery1" title="Another Parent" module="Vendor_Module" sortOrder="20" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
</menu>
</config>
The main culprit is the following CSS and I don't know why its added in the first place by Magento
.admin__menu .level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
display: none;
}
Honestly, I didn't give the proper answer to your question. But found a way to show the parent menu. Actually, Magento is hiding First "parent" menu via CSS. So you need to add another parent menu and will display your previous parent menu.
Here is my code:
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
<menu>
<add id="Vendor_Module::jsutariya" title="Grand Parent" module="Vendor_Module" sortOrder="100" resource="Vendor_Module::jsutariya" />
<add id="Vendor_Module::jsutariya_listgallery" title="Parent" module="Vendor_Module" sortOrder="10" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
<add id="Vendor_Module::jsutariya_settings" title="Child" module="Vendor_Module"
sortOrder="40" action="adminhtml/system_config/edit/section/list_gallery"
resource="Vendor_Module::settings" parent="Vendor_Module::jsutariya_listgallery"/>
<add id="Vendor_Module::jsutariya_listgallery1" title="Another Parent" module="Vendor_Module" sortOrder="20" resource="Vendor_Module::listgallery" parent="Vendor_Module::jsutariya" />
</menu>
</config>
The main culprit is the following CSS and I don't know why its added in the first place by Magento
.admin__menu .level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
display: none;
}
answered 13 hours ago
ShankarShankar
10226
10226
Thanks Shankar. I wonder why Magento kept it hidden. Users will get confused by this because they will only seeSettings
and will wonder to which module it is related to.
– Jaimin Sutariya
13 hours ago
add a comment |
Thanks Shankar. I wonder why Magento kept it hidden. Users will get confused by this because they will only seeSettings
and will wonder to which module it is related to.
– Jaimin Sutariya
13 hours ago
Thanks Shankar. I wonder why Magento kept it hidden. Users will get confused by this because they will only see
Settings
and will wonder to which module it is related to.– Jaimin Sutariya
13 hours ago
Thanks Shankar. I wonder why Magento kept it hidden. Users will get confused by this because they will only see
Settings
and will wonder to which module it is related to.– Jaimin Sutariya
13 hours ago
add a comment |
You have to need change _menu.less for fix the child menu issue actually Admin Navigation Menu labels hide in css.
You can change below _menu.less file path and comment code which is already display:none.
File path:
magento/vendor/magento/theme-adminhtml-backend/Magento_Backend/web/css/source/module/_menu.less
// This part hides Submenu Group Titles only for menus with single groups.
/*.submenu .column:only-of-type .submenu-group-title,
.level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
display: none;
}*/
For more Details refer below links:
https://github.com/magento/magento2/issues/13707
https://github.com/magento/magento2/commit/d91e96b529e70dcec55d3b5336b471791dc42d54
add a comment |
You have to need change _menu.less for fix the child menu issue actually Admin Navigation Menu labels hide in css.
You can change below _menu.less file path and comment code which is already display:none.
File path:
magento/vendor/magento/theme-adminhtml-backend/Magento_Backend/web/css/source/module/_menu.less
// This part hides Submenu Group Titles only for menus with single groups.
/*.submenu .column:only-of-type .submenu-group-title,
.level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
display: none;
}*/
For more Details refer below links:
https://github.com/magento/magento2/issues/13707
https://github.com/magento/magento2/commit/d91e96b529e70dcec55d3b5336b471791dc42d54
add a comment |
You have to need change _menu.less for fix the child menu issue actually Admin Navigation Menu labels hide in css.
You can change below _menu.less file path and comment code which is already display:none.
File path:
magento/vendor/magento/theme-adminhtml-backend/Magento_Backend/web/css/source/module/_menu.less
// This part hides Submenu Group Titles only for menus with single groups.
/*.submenu .column:only-of-type .submenu-group-title,
.level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
display: none;
}*/
For more Details refer below links:
https://github.com/magento/magento2/issues/13707
https://github.com/magento/magento2/commit/d91e96b529e70dcec55d3b5336b471791dc42d54
You have to need change _menu.less for fix the child menu issue actually Admin Navigation Menu labels hide in css.
You can change below _menu.less file path and comment code which is already display:none.
File path:
magento/vendor/magento/theme-adminhtml-backend/Magento_Backend/web/css/source/module/_menu.less
// This part hides Submenu Group Titles only for menus with single groups.
/*.submenu .column:only-of-type .submenu-group-title,
.level-0 > .submenu > ul > .level-1:only-of-type > .submenu-group-title {
display: none;
}*/
For more Details refer below links:
https://github.com/magento/magento2/issues/13707
https://github.com/magento/magento2/commit/d91e96b529e70dcec55d3b5336b471791dc42d54
answered 12 hours ago
Kirti NariyaKirti Nariya
1,087415
1,087415
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%2f269042%2fmagento-2-admin-panel-3-level-menu-structure-not-working%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