Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Adding New Menu Item In Magento 2 Custom Module

In this 5th tutorial, I will introduce you how to create new menu item via Magento 2 backend in custom module. We will continue using the Tutorial_SimpleNews module in the last post. In order to understand this tutorial thoroughly, please review our last tutorials:
1. How to create a simple module in Magento 2
2. Create a module with custom database table in Magento 2
3. How to use Model and Collection in Magento 2
4. How to create the configuration via backend for a custom module

  • Loggen Sie sich ein, um Kommentare anzuzeigen.

Adding New Menu Item In Magento 2 Custom Module

  1. 1. Adding New Menu Item In Magento 2 Custom Module Provided By Mageworld A Leading Magento Provider
  2. 2. Outline Step 1: Create Menu File Step 2: Create Route File Step 3: Add Role For Each Menu Item
  3. 3. Reviews  Continue using the Tutorial_SimpleNews module Last tutorials: 1. How to create a simple module in Magento 2 2. Create a module with custom database table in Magento 2 3. How to use Model and Collection in Magento 2 4. How to create the configuration via backend for a custom module
  4. 4. Step 1: Create Menu File  Create file: app/code/Tutorial/SimpleNews/etc/adminhtml/menu.xml  Purpose: Declare the menu item of your module
  5. 5. Step 2: Create Route File  Create file: app/code/Tutorial/SimpleNews/etc/adminhtml/routes.xml  Purpose: Declare the router of your module for backend
  6. 6. Step 3: Add Role For Each Menu Item  Open this file: app/code/Tutorial/Simple News/etc/acl.xml  Modify source code
  7. 7. Step 3: Add Role For Each Menu Item  Access to the backend site then clear Magento cache and see the result
  8. 8. Step 3: Add Role For Each Menu Item  This is the additional role (System > Permissions > User Roles)
  9. 9. Following Mageworld Magento2 Tutorial Series…

×