How to create custom admin menu in magento 2 step by step | Easy Tutorial | Complete Guide

Channel:
Subscribers:
713
Published on ● Video Link: https://www.youtube.com/watch?v=9meGQNKGjpY



Step By Step
Game:
Duration: 16:37
2,258 views
0


In this video tutorial we going to see how to create admin menu in magento 2.

magento 2 create module tutorial
magento module development tutorial
module development in magento 2
custom module in magento 2
how to create module in magento 2 step by step
how to create module in magento 2
how to create module in magento

How to add a link to Magento 2 Admin Menu, which shown on the left side of Admin Menu pages of Magento 2.

Firstly, we will find out the structure of the admin menu and how the action in each menu like. The structure of the menu is separated by level. You will see the level-0 on the left bar and the higher level is grouped and shown when you click on level-0 menu. For example, this image is a menu of Stores. You will see the Stores is a level-0 and show on the left bar. When you click on it, the sub-menu will show up like: Setting, Attributes, Taxes… and that sub-menu has some sub-sub-menu also (Setting has All Stores, Configuration, Terms and Conditions, Order Status).

Like on the frontend, we will have this format {router_name}_{controller_folder}_{action_name}. But in the admin menu, we will have a admin router name (this can be customized) before which made Magento know this’s a Backend area.

In Magento 2, we use the menu.xml to add this menu.

To understand more about menu in magento 2 we will do practice.
Lets do this practically, you need to follow step by step
Step 1: Create a new module called Techone_ Adminmenu
- Create the namespace Techone in the path app\code.
- Create the module name Adminmenu in the path app\code\Techone.
- Create the file named registration.php in the path app\code\Techone\ Adminmenu


- Create the file name module.xml in the path app\code\Techone\ Adminmenu\etc

End of step #1, I have been completed the step to create new module called Techone_ Adminmenu

Step 2: Declare Route
- Route will define name for a module which can use in url to find the url and execute the controller action.
- Create the new file named routes.xml in the path app\code\Techone\Adminmenu\etc\adminhtml
I put the routes.xml file in the folder named adminhtml, because I want these codes only to apply on the admin.
Step 3: Create menu.xml
- Create the new file named menu.xml, in the path app\code\Techone\Adminmenu\etc\adminhtml\menu.xml

In this example, we will create a level-0 menu named “Techone” and two sub-menus named “Manage Posts” and “Configuration”. The menu.xml file will define a collection of ‘add’ note which will add a menu item to Magento backend.

Step 4: Test and see the results
Run the command lines following:
- php bin/magento setup:upgrade
- php bin/magento setup:static-content:deploy -f
- php bin/magento cache:flush –done




Other Videos By Raju Pandit


2020-06-06DOWNLOAD FREE ONLINE Job Recruitment Portal Project | 100% Free | With Source Code | PHP & MySQL
2020-05-28A Step-by-Step Guide to Job Recruitment Portal Project | 100% Free | With Source Code | PHP & MySQL
2020-05-14How to download and install composer | Start to End
2020-05-13How to install phpmyadmin on windows | @@ Step by Step @@ | Start to End
2020-05-12What's New in Magento 2.3.5 | Installation Magento 2.3.5 | New Feature | Xampp | Complete Guide
2020-05-10How to install laravel on localhost | Xampp | Practically | Complete Guide
2020-05-10Laravel 7 Crud Using Bootstrap Modal | Step by Step | Complete Tutorial | Explained Easyway
2020-05-02How to Create Passport size photo in Photoshop | Step by Step | Easy Tutorial | Complete Guide
2020-05-02How to use or add custom border in ms word | step by step | Easy Tutorial | Complete Guide
2020-05-01How to create certificate design in ms word | step by step | Easy Tutorial | Complete Guide
2020-04-30How to create custom admin menu in magento 2 step by step | Easy Tutorial | Complete Guide
2020-04-29Magento 2 Create : View | Blocks, Template, Layout | Learn In Simpleway | Full Guide
2020-04-28Error Free | Installation Magento 2.3 | Start to End | Xampp | Localhost
2020-04-26How To Create The Matrix Rain In Command Prompt | step by step | Complete Tutorial
2020-04-26How to upload project or files to Github Repo with Git Bash | step by step | Complete Tutorial
2020-04-25How to import sql in phpmyadmin using command line | XAMPP |step by step | Complete Tutorial
2020-04-25How to export sql in phpmyadmin using command line | XAMPP | step by step | Complete Tutorial
2020-04-24Magento 2 | How to create controller in magento 2 | "Full Practical" | Start to End
2020-04-23Magento 2 | How to use AJAX in magento 2 | "Full Practical" | Start to End
2020-04-21Magento 2 | How to use plugin in magento 2 | "Full Practical" | Start to End
2020-04-20"READ More!" - Warren Buffett | How reading book helps in technical life | Reading books Benefits



Tags:
admin menu in magento 2
custom admin menu in magento 2
module development in magento 2
magento module development tutorial
magento 2 create module tutorial
magento 2 module development step by step
how to create module in magento
how to create module in magento 2
how to create module in magento 2 step by step
custom module in magento 2



Other Statistics

Step By Step Statistics For Raju Pandit

Raju Pandit presently has 3,619 views for Step By Step across 3 videos, with his channel publishing less than an hour of Step By Step content. This makes up 3.45% of the content that Raju Pandit has uploaded to YouTube.