Subsection in admin menu

The name of the pictureThe name of the pictureThe name of the pictureClash 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):



enter image description here



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.



enter image description here










share|improve this question



























    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):



    enter image description here



    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.



    enter image description here










    share|improve this question























      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):



      enter image description here



      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.



      enter image description here










      share|improve this question













      Hey I'm trying to add a menu item in the Magento 2 backoffice but I want to create sections like this (Elements & Design):



      enter image description here



      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.



      enter image description here







      magento2 adminmenu






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      Arno Vande Cappelle

      9210




      9210




















          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.






          share|improve this answer




















          • 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

















          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.






          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',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f245868%2fsubsection-in-admin-menu%23new-answer', 'question_page');

            );

            Post as a guest






























            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.






            share|improve this answer




















            • 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














            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.






            share|improve this answer




















            • 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












            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.






            share|improve this answer












            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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            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
















            • 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












            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.






            share|improve this answer
























              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.






              share|improve this answer






















                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.






                share|improve this answer












                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 52 mins ago









                Anshu Mishra

                4,74232455




                4,74232455



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    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













































































                    Comments

                    Popular posts from this blog

                    What does second last employer means? [closed]

                    List of Gilmore Girls characters

                    Confectionery