Magento 2: Create Custom Tab in admin panel in magento 2





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







1















Can anybody help me to build this tab in admin panel by custom module.



enter image description here



i want to achieve something like above picture.










share|improve this question


















  • 1





    please follow the link inchoo.net/magento-2/admin-menu-item-magento-2

    – Nagaraju Kasa
    Aug 14 '17 at 12:28


















1















Can anybody help me to build this tab in admin panel by custom module.



enter image description here



i want to achieve something like above picture.










share|improve this question


















  • 1





    please follow the link inchoo.net/magento-2/admin-menu-item-magento-2

    – Nagaraju Kasa
    Aug 14 '17 at 12:28














1












1








1








Can anybody help me to build this tab in admin panel by custom module.



enter image description here



i want to achieve something like above picture.










share|improve this question














Can anybody help me to build this tab in admin panel by custom module.



enter image description here



i want to achieve something like above picture.







magento-2.1 admin-panel multi-vendor






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Aug 14 '17 at 12:08









Jay KapoorJay Kapoor

176321




176321








  • 1





    please follow the link inchoo.net/magento-2/admin-menu-item-magento-2

    – Nagaraju Kasa
    Aug 14 '17 at 12:28














  • 1





    please follow the link inchoo.net/magento-2/admin-menu-item-magento-2

    – Nagaraju Kasa
    Aug 14 '17 at 12:28








1




1





please follow the link inchoo.net/magento-2/admin-menu-item-magento-2

– Nagaraju Kasa
Aug 14 '17 at 12:28





please follow the link inchoo.net/magento-2/admin-menu-item-magento-2

– Nagaraju Kasa
Aug 14 '17 at 12:28










3 Answers
3






active

oldest

votes


















0














You will need to create an custom module with etc/adminhtml/menu.xml.



For example



<?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::name"
title="Title"
module="Vendor_Module"
sortOrder="9999"
resource="Vendor_Module::name"
action="actionpath"
/>
</menu>
</config>


I suggest you look here for more info
http://www.mage-world.com/blog/adding-new-menu-item-in-magento-2-custom-module.html






share|improve this answer
























  • i followed the link to u provided, and it works, but when i click on menu item it redirects me to 404 not found in admin panel

    – Jay Kapoor
    Aug 16 '17 at 7:37











  • why is that? should i create a controller for this and how to create admin controller?

    – Jay Kapoor
    Aug 16 '17 at 7:38











  • Yes, but thats for a different question @JayKapoor

    – Web Weave
    Aug 17 '17 at 13:50











  • please suggest a way how to solve this and get data from the database in custom tab

    – Jay Kapoor
    Aug 18 '17 at 6:06











  • As I said, this is to broad for this question, you should make another @JayKapoor

    – Web Weave
    Aug 18 '17 at 7:41



















1














You can refer below link to create custom tab in Magento2 -



https://github.com/jainmegha5395/admin-menu






share|improve this answer








New contributor




Megha Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




























    0














    This module creates a Tab Menu with the logo in Magento2 admin: https://github.com/gr33nart/m2_greenart_newtab



    Printscreen: https://goo.gl/YPkvn4



    Below are some explanations, but in the above Github link I created a module that does this with the custom logo.





    Vendor/Module/etc/acl.xml



    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
    <acl>
    <resources>
    <resource id="Magento_Backend::admin">
    <resource id="Vendor/Module::Module" title="TabMenu" sortOrder="0" />
    </resource>
    </resources>
    </acl>
    </config>





    Vendor/Module/etc/adminhtml/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::Module" title="Level 1" module="Vendor_Module" sortOrder="0" resource="Vendor_Module::Module"/>
    <add id="Vendor_Module::Level_02" title="Level 2" translate="title" module="Magento_Catalog" sortOrder="10" parent="Vendor_Module::Module" action="module/index/index/" resource="Magento_Catalog::products"/>
    <add id="Vendor_Module::catalog_products" title="Catalog" translate="title" module="Magento_Catalog" sortOrder="10" parent="Vendor_Module::Module" action="catalog/product/" resource="Magento_Catalog::products"/>
    </menu>
    </config>





    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%2f189072%2fmagento-2-create-custom-tab-in-admin-panel-in-magento-2%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









      0














      You will need to create an custom module with etc/adminhtml/menu.xml.



      For example



      <?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::name"
      title="Title"
      module="Vendor_Module"
      sortOrder="9999"
      resource="Vendor_Module::name"
      action="actionpath"
      />
      </menu>
      </config>


      I suggest you look here for more info
      http://www.mage-world.com/blog/adding-new-menu-item-in-magento-2-custom-module.html






      share|improve this answer
























      • i followed the link to u provided, and it works, but when i click on menu item it redirects me to 404 not found in admin panel

        – Jay Kapoor
        Aug 16 '17 at 7:37











      • why is that? should i create a controller for this and how to create admin controller?

        – Jay Kapoor
        Aug 16 '17 at 7:38











      • Yes, but thats for a different question @JayKapoor

        – Web Weave
        Aug 17 '17 at 13:50











      • please suggest a way how to solve this and get data from the database in custom tab

        – Jay Kapoor
        Aug 18 '17 at 6:06











      • As I said, this is to broad for this question, you should make another @JayKapoor

        – Web Weave
        Aug 18 '17 at 7:41
















      0














      You will need to create an custom module with etc/adminhtml/menu.xml.



      For example



      <?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::name"
      title="Title"
      module="Vendor_Module"
      sortOrder="9999"
      resource="Vendor_Module::name"
      action="actionpath"
      />
      </menu>
      </config>


      I suggest you look here for more info
      http://www.mage-world.com/blog/adding-new-menu-item-in-magento-2-custom-module.html






      share|improve this answer
























      • i followed the link to u provided, and it works, but when i click on menu item it redirects me to 404 not found in admin panel

        – Jay Kapoor
        Aug 16 '17 at 7:37











      • why is that? should i create a controller for this and how to create admin controller?

        – Jay Kapoor
        Aug 16 '17 at 7:38











      • Yes, but thats for a different question @JayKapoor

        – Web Weave
        Aug 17 '17 at 13:50











      • please suggest a way how to solve this and get data from the database in custom tab

        – Jay Kapoor
        Aug 18 '17 at 6:06











      • As I said, this is to broad for this question, you should make another @JayKapoor

        – Web Weave
        Aug 18 '17 at 7:41














      0












      0








      0







      You will need to create an custom module with etc/adminhtml/menu.xml.



      For example



      <?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::name"
      title="Title"
      module="Vendor_Module"
      sortOrder="9999"
      resource="Vendor_Module::name"
      action="actionpath"
      />
      </menu>
      </config>


      I suggest you look here for more info
      http://www.mage-world.com/blog/adding-new-menu-item-in-magento-2-custom-module.html






      share|improve this answer













      You will need to create an custom module with etc/adminhtml/menu.xml.



      For example



      <?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::name"
      title="Title"
      module="Vendor_Module"
      sortOrder="9999"
      resource="Vendor_Module::name"
      action="actionpath"
      />
      </menu>
      </config>


      I suggest you look here for more info
      http://www.mage-world.com/blog/adding-new-menu-item-in-magento-2-custom-module.html







      share|improve this answer












      share|improve this answer



      share|improve this answer










      answered Aug 14 '17 at 14:21









      Web WeaveWeb Weave

      386




      386













      • i followed the link to u provided, and it works, but when i click on menu item it redirects me to 404 not found in admin panel

        – Jay Kapoor
        Aug 16 '17 at 7:37











      • why is that? should i create a controller for this and how to create admin controller?

        – Jay Kapoor
        Aug 16 '17 at 7:38











      • Yes, but thats for a different question @JayKapoor

        – Web Weave
        Aug 17 '17 at 13:50











      • please suggest a way how to solve this and get data from the database in custom tab

        – Jay Kapoor
        Aug 18 '17 at 6:06











      • As I said, this is to broad for this question, you should make another @JayKapoor

        – Web Weave
        Aug 18 '17 at 7:41



















      • i followed the link to u provided, and it works, but when i click on menu item it redirects me to 404 not found in admin panel

        – Jay Kapoor
        Aug 16 '17 at 7:37











      • why is that? should i create a controller for this and how to create admin controller?

        – Jay Kapoor
        Aug 16 '17 at 7:38











      • Yes, but thats for a different question @JayKapoor

        – Web Weave
        Aug 17 '17 at 13:50











      • please suggest a way how to solve this and get data from the database in custom tab

        – Jay Kapoor
        Aug 18 '17 at 6:06











      • As I said, this is to broad for this question, you should make another @JayKapoor

        – Web Weave
        Aug 18 '17 at 7:41

















      i followed the link to u provided, and it works, but when i click on menu item it redirects me to 404 not found in admin panel

      – Jay Kapoor
      Aug 16 '17 at 7:37





      i followed the link to u provided, and it works, but when i click on menu item it redirects me to 404 not found in admin panel

      – Jay Kapoor
      Aug 16 '17 at 7:37













      why is that? should i create a controller for this and how to create admin controller?

      – Jay Kapoor
      Aug 16 '17 at 7:38





      why is that? should i create a controller for this and how to create admin controller?

      – Jay Kapoor
      Aug 16 '17 at 7:38













      Yes, but thats for a different question @JayKapoor

      – Web Weave
      Aug 17 '17 at 13:50





      Yes, but thats for a different question @JayKapoor

      – Web Weave
      Aug 17 '17 at 13:50













      please suggest a way how to solve this and get data from the database in custom tab

      – Jay Kapoor
      Aug 18 '17 at 6:06





      please suggest a way how to solve this and get data from the database in custom tab

      – Jay Kapoor
      Aug 18 '17 at 6:06













      As I said, this is to broad for this question, you should make another @JayKapoor

      – Web Weave
      Aug 18 '17 at 7:41





      As I said, this is to broad for this question, you should make another @JayKapoor

      – Web Weave
      Aug 18 '17 at 7:41













      1














      You can refer below link to create custom tab in Magento2 -



      https://github.com/jainmegha5395/admin-menu






      share|improve this answer








      New contributor




      Megha Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.

























        1














        You can refer below link to create custom tab in Magento2 -



        https://github.com/jainmegha5395/admin-menu






        share|improve this answer








        New contributor




        Megha Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.























          1












          1








          1







          You can refer below link to create custom tab in Magento2 -



          https://github.com/jainmegha5395/admin-menu






          share|improve this answer








          New contributor




          Megha Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          You can refer below link to create custom tab in Magento2 -



          https://github.com/jainmegha5395/admin-menu







          share|improve this answer








          New contributor




          Megha Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          Megha Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 21 mins ago









          Megha JainMegha Jain

          111




          111




          New contributor




          Megha Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          Megha Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          Megha Jain is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.























              0














              This module creates a Tab Menu with the logo in Magento2 admin: https://github.com/gr33nart/m2_greenart_newtab



              Printscreen: https://goo.gl/YPkvn4



              Below are some explanations, but in the above Github link I created a module that does this with the custom logo.





              Vendor/Module/etc/acl.xml



              <?xml version="1.0"?>
              <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
              <acl>
              <resources>
              <resource id="Magento_Backend::admin">
              <resource id="Vendor/Module::Module" title="TabMenu" sortOrder="0" />
              </resource>
              </resources>
              </acl>
              </config>





              Vendor/Module/etc/adminhtml/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::Module" title="Level 1" module="Vendor_Module" sortOrder="0" resource="Vendor_Module::Module"/>
              <add id="Vendor_Module::Level_02" title="Level 2" translate="title" module="Magento_Catalog" sortOrder="10" parent="Vendor_Module::Module" action="module/index/index/" resource="Magento_Catalog::products"/>
              <add id="Vendor_Module::catalog_products" title="Catalog" translate="title" module="Magento_Catalog" sortOrder="10" parent="Vendor_Module::Module" action="catalog/product/" resource="Magento_Catalog::products"/>
              </menu>
              </config>





              share|improve this answer






























                0














                This module creates a Tab Menu with the logo in Magento2 admin: https://github.com/gr33nart/m2_greenart_newtab



                Printscreen: https://goo.gl/YPkvn4



                Below are some explanations, but in the above Github link I created a module that does this with the custom logo.





                Vendor/Module/etc/acl.xml



                <?xml version="1.0"?>
                <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
                <acl>
                <resources>
                <resource id="Magento_Backend::admin">
                <resource id="Vendor/Module::Module" title="TabMenu" sortOrder="0" />
                </resource>
                </resources>
                </acl>
                </config>





                Vendor/Module/etc/adminhtml/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::Module" title="Level 1" module="Vendor_Module" sortOrder="0" resource="Vendor_Module::Module"/>
                <add id="Vendor_Module::Level_02" title="Level 2" translate="title" module="Magento_Catalog" sortOrder="10" parent="Vendor_Module::Module" action="module/index/index/" resource="Magento_Catalog::products"/>
                <add id="Vendor_Module::catalog_products" title="Catalog" translate="title" module="Magento_Catalog" sortOrder="10" parent="Vendor_Module::Module" action="catalog/product/" resource="Magento_Catalog::products"/>
                </menu>
                </config>





                share|improve this answer




























                  0












                  0








                  0







                  This module creates a Tab Menu with the logo in Magento2 admin: https://github.com/gr33nart/m2_greenart_newtab



                  Printscreen: https://goo.gl/YPkvn4



                  Below are some explanations, but in the above Github link I created a module that does this with the custom logo.





                  Vendor/Module/etc/acl.xml



                  <?xml version="1.0"?>
                  <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
                  <acl>
                  <resources>
                  <resource id="Magento_Backend::admin">
                  <resource id="Vendor/Module::Module" title="TabMenu" sortOrder="0" />
                  </resource>
                  </resources>
                  </acl>
                  </config>





                  Vendor/Module/etc/adminhtml/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::Module" title="Level 1" module="Vendor_Module" sortOrder="0" resource="Vendor_Module::Module"/>
                  <add id="Vendor_Module::Level_02" title="Level 2" translate="title" module="Magento_Catalog" sortOrder="10" parent="Vendor_Module::Module" action="module/index/index/" resource="Magento_Catalog::products"/>
                  <add id="Vendor_Module::catalog_products" title="Catalog" translate="title" module="Magento_Catalog" sortOrder="10" parent="Vendor_Module::Module" action="catalog/product/" resource="Magento_Catalog::products"/>
                  </menu>
                  </config>





                  share|improve this answer















                  This module creates a Tab Menu with the logo in Magento2 admin: https://github.com/gr33nart/m2_greenart_newtab



                  Printscreen: https://goo.gl/YPkvn4



                  Below are some explanations, but in the above Github link I created a module that does this with the custom logo.





                  Vendor/Module/etc/acl.xml



                  <?xml version="1.0"?>
                  <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
                  <acl>
                  <resources>
                  <resource id="Magento_Backend::admin">
                  <resource id="Vendor/Module::Module" title="TabMenu" sortOrder="0" />
                  </resource>
                  </resources>
                  </acl>
                  </config>





                  Vendor/Module/etc/adminhtml/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::Module" title="Level 1" module="Vendor_Module" sortOrder="0" resource="Vendor_Module::Module"/>
                  <add id="Vendor_Module::Level_02" title="Level 2" translate="title" module="Magento_Catalog" sortOrder="10" parent="Vendor_Module::Module" action="module/index/index/" resource="Magento_Catalog::products"/>
                  <add id="Vendor_Module::catalog_products" title="Catalog" translate="title" module="Magento_Catalog" sortOrder="10" parent="Vendor_Module::Module" action="catalog/product/" resource="Magento_Catalog::products"/>
                  </menu>
                  </config>






                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Aug 14 '17 at 14:30

























                  answered Aug 14 '17 at 14:21









                  St3phanSt3phan

                  2,0181237




                  2,0181237






























                      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%2f189072%2fmagento-2-create-custom-tab-in-admin-panel-in-magento-2%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

                      What other Star Trek series did the main TNG cast show up in?

                      Berlina muro

                      Berlina aerponto