How can I add a menu in my magento backend?How to add menu to magento backend?Admin personal module routes failedHow can i give module name?How can I overwrite Mage_Adminhtml_Block_Cache?Add a link to Magento Admin for the Media LibraryMagento Admin Menu action not working gives 404 error Magento 1.9.2.4Simple Observer not firing on eventHow to change Shipping Method title in magento checkout pageAdminhtml - white grid - Magento 1.9Adminhtml - NULL in saveAction() formHow to add menu to magento backend?
What does it actually mean to have two time dimensions?
Will this tire fail its MOT?
How could an animal "smell" carbon monoxide?
Does the Intel 8085 CPU use real memory addresses?
What is the difference between a Hosaka, Ono-Sendai, and a "deck"?
Generating a PIN from cryptographic bytes
Intel 8080-based home computers
Create Array from list of indices/values
Wordplay subtraction paradox
Is there a typesafe way to get a Database.QueryLocator?
Why is Katakana not pronounced Katagana?
What were the problems on the Apollo 11 lunar module?
What is the meaning of [[:space:]] in bash?
Is this Android phone Android 9.0 or Android 6.0?
Why does FFmpeg choose 10+20+20 ms instead of an even 16 ms for 60 fps GIF images?
How can electric field be defined as force per charge, if the charge makes its own, singular electric field?
Interviewing with an unmentioned 9 months of sick leave taken during a job
Operation Unz̖̬̜̺̬a͇͖̯͔͉l̟̭g͕̝̼͇͓̪͍o̬̝͍̹̻
How to color a tag in a math equation?
Using SPID in DB Tables (instead of Table Variable)
Did Voldemort kill his father before finding out about Horcruxes?
Why is the total probability theorem expressed in this way?
How can the electric potential be zero at a point where the electric field isn't, if that field can give a test charge kinetic energy?
Does inertia keep a rotating object rotating forever, or something else?
How can I add a menu in my magento backend?
How to add menu to magento backend?Admin personal module routes failedHow can i give module name?How can I overwrite Mage_Adminhtml_Block_Cache?Add a link to Magento Admin for the Media LibraryMagento Admin Menu action not working gives 404 error Magento 1.9.2.4Simple Observer not firing on eventHow to change Shipping Method title in magento checkout pageAdminhtml - white grid - Magento 1.9Adminhtml - NULL in saveAction() formHow to add menu to magento backend?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Below is my code for my menu and it does not work on my side.
config.xml
<config>
<modules>
<MasteringMagento_Example>
<version>1.0.0</version>
</MasteringMagento_Example>
</modules>
<global>
<models>
<example>
<class>MasteringMagento_Example_Model</class>
</example>
</models>
<blocks>
<example>
<class>MasteringMagento_Example_Block</class>
</example>
</blocks>
<helpers>
<example>
<class>MasteringMagento_Example_Helper</class>
</example>
</helpers>
</global>
adminhtml.xml
<config>
<menu>
<example translate="title" module="example">
<title>Example</title>
<sort_order>1000</sort_order>
<action>adminhtml/example</action>
</example>
</menu>
magento-1.9 adminhtml
add a comment |
Below is my code for my menu and it does not work on my side.
config.xml
<config>
<modules>
<MasteringMagento_Example>
<version>1.0.0</version>
</MasteringMagento_Example>
</modules>
<global>
<models>
<example>
<class>MasteringMagento_Example_Model</class>
</example>
</models>
<blocks>
<example>
<class>MasteringMagento_Example_Block</class>
</example>
</blocks>
<helpers>
<example>
<class>MasteringMagento_Example_Helper</class>
</example>
</helpers>
</global>
adminhtml.xml
<config>
<menu>
<example translate="title" module="example">
<title>Example</title>
<sort_order>1000</sort_order>
<action>adminhtml/example</action>
</example>
</menu>
magento-1.9 adminhtml
why are you creating duplicate question again? magento.stackexchange.com/questions/191638/…
– Abhishek Panchal
Sep 1 '17 at 17:45
because i don't know the answer.
– Lester
Sep 1 '17 at 17:50
will you get answer if you create duplicate question?
– Abhishek Panchal
Sep 1 '17 at 17:50
can you please add full code of both the files?
– Abhishek Panchal
Sep 1 '17 at 18:06
add a comment |
Below is my code for my menu and it does not work on my side.
config.xml
<config>
<modules>
<MasteringMagento_Example>
<version>1.0.0</version>
</MasteringMagento_Example>
</modules>
<global>
<models>
<example>
<class>MasteringMagento_Example_Model</class>
</example>
</models>
<blocks>
<example>
<class>MasteringMagento_Example_Block</class>
</example>
</blocks>
<helpers>
<example>
<class>MasteringMagento_Example_Helper</class>
</example>
</helpers>
</global>
adminhtml.xml
<config>
<menu>
<example translate="title" module="example">
<title>Example</title>
<sort_order>1000</sort_order>
<action>adminhtml/example</action>
</example>
</menu>
magento-1.9 adminhtml
Below is my code for my menu and it does not work on my side.
config.xml
<config>
<modules>
<MasteringMagento_Example>
<version>1.0.0</version>
</MasteringMagento_Example>
</modules>
<global>
<models>
<example>
<class>MasteringMagento_Example_Model</class>
</example>
</models>
<blocks>
<example>
<class>MasteringMagento_Example_Block</class>
</example>
</blocks>
<helpers>
<example>
<class>MasteringMagento_Example_Helper</class>
</example>
</helpers>
</global>
adminhtml.xml
<config>
<menu>
<example translate="title" module="example">
<title>Example</title>
<sort_order>1000</sort_order>
<action>adminhtml/example</action>
</example>
</menu>
magento-1.9 adminhtml
magento-1.9 adminhtml
asked Sep 1 '17 at 17:34
LesterLester
157 bronze badges
157 bronze badges
why are you creating duplicate question again? magento.stackexchange.com/questions/191638/…
– Abhishek Panchal
Sep 1 '17 at 17:45
because i don't know the answer.
– Lester
Sep 1 '17 at 17:50
will you get answer if you create duplicate question?
– Abhishek Panchal
Sep 1 '17 at 17:50
can you please add full code of both the files?
– Abhishek Panchal
Sep 1 '17 at 18:06
add a comment |
why are you creating duplicate question again? magento.stackexchange.com/questions/191638/…
– Abhishek Panchal
Sep 1 '17 at 17:45
because i don't know the answer.
– Lester
Sep 1 '17 at 17:50
will you get answer if you create duplicate question?
– Abhishek Panchal
Sep 1 '17 at 17:50
can you please add full code of both the files?
– Abhishek Panchal
Sep 1 '17 at 18:06
why are you creating duplicate question again? magento.stackexchange.com/questions/191638/…
– Abhishek Panchal
Sep 1 '17 at 17:45
why are you creating duplicate question again? magento.stackexchange.com/questions/191638/…
– Abhishek Panchal
Sep 1 '17 at 17:45
because i don't know the answer.
– Lester
Sep 1 '17 at 17:50
because i don't know the answer.
– Lester
Sep 1 '17 at 17:50
will you get answer if you create duplicate question?
– Abhishek Panchal
Sep 1 '17 at 17:50
will you get answer if you create duplicate question?
– Abhishek Panchal
Sep 1 '17 at 17:50
can you please add full code of both the files?
– Abhishek Panchal
Sep 1 '17 at 18:06
can you please add full code of both the files?
– Abhishek Panchal
Sep 1 '17 at 18:06
add a comment |
1 Answer
1
active
oldest
votes
You know, the admin menu contains a lot of files, I'll not put all the module files, but I will help you to direct you to the right solution.
app/code/local/MasteringMagento/Example/etc/config.xml
...
</global>
<adminhtml>
<layout>
<updates>
<example>
<file>example.xml</file>
</example>
</updates>
</layout>
</adminhtml>
</config>
app/code/local/MasteringMagento/Example/etc/adminhtml.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<menu>
<menu1 module="example" translate="title">
<title>Menu 1</title>
<sort_order>100</sort_order>
<children>
<item1 module="example" translate="title">
<title>Submenu 1</title>
<sort_order>1</sort_order>
<action>adminhtml/menu/index</action>
</item1>
<item2 module="example" translate="title">
<title>Submenu 2</title>
<sort_order>2</sort_order>
<action>adminhtml/index/index</action>
</item2>
</children>
</menu1>
</menu>
<acl>
<resources>
<admin>
<children>
<menu1 translate="title" module="example">
<title>Menu 1</title>
<sort_order>100</sort_order>
<children>
<item1 translate="title">
<title>Submenu 1</title>
<sort_order>1</sort_order>
</item1>
<item2 translate="title">
<title>Submenu 2</title>
<sort_order>2</sort_order>
</item2>
</children>
</menu1>
</children>
</admin>
</resources>
</acl>
</config>
app/code/local/MasteringMagento/Example/controllers/Adminhtml/IndexController.php
<?php
class MasteringMagento_Example_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
public function indexAction()
$this->loadLayout()
->_setActiveMenu('menu/menu')
->_title($this->__('Submenu1'));
$this->renderLayout();
app/design/adminhtml/default/default/layout/example.xml
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<adminhtml_index_index>
<reference name="content">
<block type="exemple/adminhtml_menu" name="exemple"/>
</reference>
</adminhtml_index_index>
</layout>
Now you have to create all files block ...
add a comment |
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
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f191644%2fhow-can-i-add-a-menu-in-my-magento-backend%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You know, the admin menu contains a lot of files, I'll not put all the module files, but I will help you to direct you to the right solution.
app/code/local/MasteringMagento/Example/etc/config.xml
...
</global>
<adminhtml>
<layout>
<updates>
<example>
<file>example.xml</file>
</example>
</updates>
</layout>
</adminhtml>
</config>
app/code/local/MasteringMagento/Example/etc/adminhtml.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<menu>
<menu1 module="example" translate="title">
<title>Menu 1</title>
<sort_order>100</sort_order>
<children>
<item1 module="example" translate="title">
<title>Submenu 1</title>
<sort_order>1</sort_order>
<action>adminhtml/menu/index</action>
</item1>
<item2 module="example" translate="title">
<title>Submenu 2</title>
<sort_order>2</sort_order>
<action>adminhtml/index/index</action>
</item2>
</children>
</menu1>
</menu>
<acl>
<resources>
<admin>
<children>
<menu1 translate="title" module="example">
<title>Menu 1</title>
<sort_order>100</sort_order>
<children>
<item1 translate="title">
<title>Submenu 1</title>
<sort_order>1</sort_order>
</item1>
<item2 translate="title">
<title>Submenu 2</title>
<sort_order>2</sort_order>
</item2>
</children>
</menu1>
</children>
</admin>
</resources>
</acl>
</config>
app/code/local/MasteringMagento/Example/controllers/Adminhtml/IndexController.php
<?php
class MasteringMagento_Example_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
public function indexAction()
$this->loadLayout()
->_setActiveMenu('menu/menu')
->_title($this->__('Submenu1'));
$this->renderLayout();
app/design/adminhtml/default/default/layout/example.xml
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<adminhtml_index_index>
<reference name="content">
<block type="exemple/adminhtml_menu" name="exemple"/>
</reference>
</adminhtml_index_index>
</layout>
Now you have to create all files block ...
add a comment |
You know, the admin menu contains a lot of files, I'll not put all the module files, but I will help you to direct you to the right solution.
app/code/local/MasteringMagento/Example/etc/config.xml
...
</global>
<adminhtml>
<layout>
<updates>
<example>
<file>example.xml</file>
</example>
</updates>
</layout>
</adminhtml>
</config>
app/code/local/MasteringMagento/Example/etc/adminhtml.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<menu>
<menu1 module="example" translate="title">
<title>Menu 1</title>
<sort_order>100</sort_order>
<children>
<item1 module="example" translate="title">
<title>Submenu 1</title>
<sort_order>1</sort_order>
<action>adminhtml/menu/index</action>
</item1>
<item2 module="example" translate="title">
<title>Submenu 2</title>
<sort_order>2</sort_order>
<action>adminhtml/index/index</action>
</item2>
</children>
</menu1>
</menu>
<acl>
<resources>
<admin>
<children>
<menu1 translate="title" module="example">
<title>Menu 1</title>
<sort_order>100</sort_order>
<children>
<item1 translate="title">
<title>Submenu 1</title>
<sort_order>1</sort_order>
</item1>
<item2 translate="title">
<title>Submenu 2</title>
<sort_order>2</sort_order>
</item2>
</children>
</menu1>
</children>
</admin>
</resources>
</acl>
</config>
app/code/local/MasteringMagento/Example/controllers/Adminhtml/IndexController.php
<?php
class MasteringMagento_Example_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
public function indexAction()
$this->loadLayout()
->_setActiveMenu('menu/menu')
->_title($this->__('Submenu1'));
$this->renderLayout();
app/design/adminhtml/default/default/layout/example.xml
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<adminhtml_index_index>
<reference name="content">
<block type="exemple/adminhtml_menu" name="exemple"/>
</reference>
</adminhtml_index_index>
</layout>
Now you have to create all files block ...
add a comment |
You know, the admin menu contains a lot of files, I'll not put all the module files, but I will help you to direct you to the right solution.
app/code/local/MasteringMagento/Example/etc/config.xml
...
</global>
<adminhtml>
<layout>
<updates>
<example>
<file>example.xml</file>
</example>
</updates>
</layout>
</adminhtml>
</config>
app/code/local/MasteringMagento/Example/etc/adminhtml.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<menu>
<menu1 module="example" translate="title">
<title>Menu 1</title>
<sort_order>100</sort_order>
<children>
<item1 module="example" translate="title">
<title>Submenu 1</title>
<sort_order>1</sort_order>
<action>adminhtml/menu/index</action>
</item1>
<item2 module="example" translate="title">
<title>Submenu 2</title>
<sort_order>2</sort_order>
<action>adminhtml/index/index</action>
</item2>
</children>
</menu1>
</menu>
<acl>
<resources>
<admin>
<children>
<menu1 translate="title" module="example">
<title>Menu 1</title>
<sort_order>100</sort_order>
<children>
<item1 translate="title">
<title>Submenu 1</title>
<sort_order>1</sort_order>
</item1>
<item2 translate="title">
<title>Submenu 2</title>
<sort_order>2</sort_order>
</item2>
</children>
</menu1>
</children>
</admin>
</resources>
</acl>
</config>
app/code/local/MasteringMagento/Example/controllers/Adminhtml/IndexController.php
<?php
class MasteringMagento_Example_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
public function indexAction()
$this->loadLayout()
->_setActiveMenu('menu/menu')
->_title($this->__('Submenu1'));
$this->renderLayout();
app/design/adminhtml/default/default/layout/example.xml
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<adminhtml_index_index>
<reference name="content">
<block type="exemple/adminhtml_menu" name="exemple"/>
</reference>
</adminhtml_index_index>
</layout>
Now you have to create all files block ...
You know, the admin menu contains a lot of files, I'll not put all the module files, but I will help you to direct you to the right solution.
app/code/local/MasteringMagento/Example/etc/config.xml
...
</global>
<adminhtml>
<layout>
<updates>
<example>
<file>example.xml</file>
</example>
</updates>
</layout>
</adminhtml>
</config>
app/code/local/MasteringMagento/Example/etc/adminhtml.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<menu>
<menu1 module="example" translate="title">
<title>Menu 1</title>
<sort_order>100</sort_order>
<children>
<item1 module="example" translate="title">
<title>Submenu 1</title>
<sort_order>1</sort_order>
<action>adminhtml/menu/index</action>
</item1>
<item2 module="example" translate="title">
<title>Submenu 2</title>
<sort_order>2</sort_order>
<action>adminhtml/index/index</action>
</item2>
</children>
</menu1>
</menu>
<acl>
<resources>
<admin>
<children>
<menu1 translate="title" module="example">
<title>Menu 1</title>
<sort_order>100</sort_order>
<children>
<item1 translate="title">
<title>Submenu 1</title>
<sort_order>1</sort_order>
</item1>
<item2 translate="title">
<title>Submenu 2</title>
<sort_order>2</sort_order>
</item2>
</children>
</menu1>
</children>
</admin>
</resources>
</acl>
</config>
app/code/local/MasteringMagento/Example/controllers/Adminhtml/IndexController.php
<?php
class MasteringMagento_Example_Adminhtml_IndexController extends Mage_Adminhtml_Controller_Action
public function indexAction()
$this->loadLayout()
->_setActiveMenu('menu/menu')
->_title($this->__('Submenu1'));
$this->renderLayout();
app/design/adminhtml/default/default/layout/example.xml
<?xml version="1.0" encoding="UTF-8"?>
<layout version="0.1.0">
<adminhtml_index_index>
<reference name="content">
<block type="exemple/adminhtml_menu" name="exemple"/>
</reference>
</adminhtml_index_index>
</layout>
Now you have to create all files block ...
answered Sep 1 '17 at 19:53
PЯINCƏPЯINCƏ
8,5773 gold badges11 silver badges50 bronze badges
8,5773 gold badges11 silver badges50 bronze badges
add a comment |
add a comment |
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.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f191644%2fhow-can-i-add-a-menu-in-my-magento-backend%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
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
why are you creating duplicate question again? magento.stackexchange.com/questions/191638/…
– Abhishek Panchal
Sep 1 '17 at 17:45
because i don't know the answer.
– Lester
Sep 1 '17 at 17:50
will you get answer if you create duplicate question?
– Abhishek Panchal
Sep 1 '17 at 17:50
can you please add full code of both the files?
– Abhishek Panchal
Sep 1 '17 at 18:06