Subsection in admin menu
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
1
down vote
favorite
Hey I'm trying to add a menu item in the Magento 2 backoffice but I want to create sections like this (Elements & Design):
Here is my Arno/Blog/etc/adminhtml/menu.xml:
<menu>
<add id="Arno_Blog::main" title="Arno Blog" sortOrder="100" module="Arno_Blog" resource="Arno_Blog::main"/>
<add id="Arno_Blog::main_blog" title="Blog" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
<add id="Arno_Blog::posts" title="Manage Blog posts" module="Arno_Blog" resource="Arno_Blog::posts"
parent="Arno_Blog::main_blog" action="arno_blog/blog"/>
</menu>
I think I'm doing it right but I still don't get the 'Blog' section.
magento2 adminmenu
add a comment |Â
up vote
1
down vote
favorite
Hey I'm trying to add a menu item in the Magento 2 backoffice but I want to create sections like this (Elements & Design):
Here is my Arno/Blog/etc/adminhtml/menu.xml:
<menu>
<add id="Arno_Blog::main" title="Arno Blog" sortOrder="100" module="Arno_Blog" resource="Arno_Blog::main"/>
<add id="Arno_Blog::main_blog" title="Blog" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
<add id="Arno_Blog::posts" title="Manage Blog posts" module="Arno_Blog" resource="Arno_Blog::posts"
parent="Arno_Blog::main_blog" action="arno_blog/blog"/>
</menu>
I think I'm doing it right but I still don't get the 'Blog' section.
magento2 adminmenu
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Hey I'm trying to add a menu item in the Magento 2 backoffice but I want to create sections like this (Elements & Design):
Here is my Arno/Blog/etc/adminhtml/menu.xml:
<menu>
<add id="Arno_Blog::main" title="Arno Blog" sortOrder="100" module="Arno_Blog" resource="Arno_Blog::main"/>
<add id="Arno_Blog::main_blog" title="Blog" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
<add id="Arno_Blog::posts" title="Manage Blog posts" module="Arno_Blog" resource="Arno_Blog::posts"
parent="Arno_Blog::main_blog" action="arno_blog/blog"/>
</menu>
I think I'm doing it right but I still don't get the 'Blog' section.
magento2 adminmenu
Hey I'm trying to add a menu item in the Magento 2 backoffice but I want to create sections like this (Elements & Design):
Here is my Arno/Blog/etc/adminhtml/menu.xml:
<menu>
<add id="Arno_Blog::main" title="Arno Blog" sortOrder="100" module="Arno_Blog" resource="Arno_Blog::main"/>
<add id="Arno_Blog::main_blog" title="Blog" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
<add id="Arno_Blog::posts" title="Manage Blog posts" module="Arno_Blog" resource="Arno_Blog::posts"
parent="Arno_Blog::main_blog" action="arno_blog/blog"/>
</menu>
I think I'm doing it right but I still don't get the 'Blog' section.
magento2 adminmenu
magento2 adminmenu
asked 1 hour ago


Arno Vande Cappelle
9210
9210
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
This is not a fault in your code but a feature (or bug) in Magento 2.2.x, that it does not show parent menu title if it has only one submenu.
Please check:
https://github.com/magento/magento2/issues/13707
and
https://github.com/magento/magento2/commit/d91e96b529e70dcec55d3b5336b471791dc42d54
Please try to add multiple menu items (having at least one submenu item) and then check.
This is indeed the problem I added my items to the "content" main menu item and this works. Thanks
– Arno Vande Cappelle
28 mins ago
add a comment |Â
up vote
0
down vote
Change
<add id="Arno_Blog::main_blog" title="Blog" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
to
<add id="Arno_Blog::main_blog" title="Blog" sortOrder="110" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
and check if it works.
Maybe the sortOrder attribute issue.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
This is not a fault in your code but a feature (or bug) in Magento 2.2.x, that it does not show parent menu title if it has only one submenu.
Please check:
https://github.com/magento/magento2/issues/13707
and
https://github.com/magento/magento2/commit/d91e96b529e70dcec55d3b5336b471791dc42d54
Please try to add multiple menu items (having at least one submenu item) and then check.
This is indeed the problem I added my items to the "content" main menu item and this works. Thanks
– Arno Vande Cappelle
28 mins ago
add a comment |Â
up vote
2
down vote
accepted
This is not a fault in your code but a feature (or bug) in Magento 2.2.x, that it does not show parent menu title if it has only one submenu.
Please check:
https://github.com/magento/magento2/issues/13707
and
https://github.com/magento/magento2/commit/d91e96b529e70dcec55d3b5336b471791dc42d54
Please try to add multiple menu items (having at least one submenu item) and then check.
This is indeed the problem I added my items to the "content" main menu item and this works. Thanks
– Arno Vande Cappelle
28 mins ago
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
This is not a fault in your code but a feature (or bug) in Magento 2.2.x, that it does not show parent menu title if it has only one submenu.
Please check:
https://github.com/magento/magento2/issues/13707
and
https://github.com/magento/magento2/commit/d91e96b529e70dcec55d3b5336b471791dc42d54
Please try to add multiple menu items (having at least one submenu item) and then check.
This is not a fault in your code but a feature (or bug) in Magento 2.2.x, that it does not show parent menu title if it has only one submenu.
Please check:
https://github.com/magento/magento2/issues/13707
and
https://github.com/magento/magento2/commit/d91e96b529e70dcec55d3b5336b471791dc42d54
Please try to add multiple menu items (having at least one submenu item) and then check.
answered 31 mins ago


Mohit Kumar Arora
5,61341432
5,61341432
This is indeed the problem I added my items to the "content" main menu item and this works. Thanks
– Arno Vande Cappelle
28 mins ago
add a comment |Â
This is indeed the problem I added my items to the "content" main menu item and this works. Thanks
– Arno Vande Cappelle
28 mins ago
This is indeed the problem I added my items to the "content" main menu item and this works. Thanks
– Arno Vande Cappelle
28 mins ago
This is indeed the problem I added my items to the "content" main menu item and this works. Thanks
– Arno Vande Cappelle
28 mins ago
add a comment |Â
up vote
0
down vote
Change
<add id="Arno_Blog::main_blog" title="Blog" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
to
<add id="Arno_Blog::main_blog" title="Blog" sortOrder="110" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
and check if it works.
Maybe the sortOrder attribute issue.
add a comment |Â
up vote
0
down vote
Change
<add id="Arno_Blog::main_blog" title="Blog" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
to
<add id="Arno_Blog::main_blog" title="Blog" sortOrder="110" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
and check if it works.
Maybe the sortOrder attribute issue.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
Change
<add id="Arno_Blog::main_blog" title="Blog" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
to
<add id="Arno_Blog::main_blog" title="Blog" sortOrder="110" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
and check if it works.
Maybe the sortOrder attribute issue.
Change
<add id="Arno_Blog::main_blog" title="Blog" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
to
<add id="Arno_Blog::main_blog" title="Blog" sortOrder="110" module="Arno_Blog" resource="Arno_Blog::main_blog" parent="Arno_Blog::main"/>
and check if it works.
Maybe the sortOrder attribute issue.
answered 52 mins ago


Anshu Mishra
4,74232455
4,74232455
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f245868%2fsubsection-in-admin-menu%23new-answer', 'question_page');
);
Post as a guest
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
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
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