Skip to content

Instantly share code, notes, and snippets.

@xcommerce-gists
Last active January 4, 2016 09:28
Show Gist options
  • Save xcommerce-gists/8601806 to your computer and use it in GitHub Desktop.
Save xcommerce-gists/8601806 to your computer and use it in GitHub Desktop.
Sample Magento adminhtml.xml to define the Admin Panel menu structure and to provide ACL to access it
<?xml version="1.0"?>
<!--
/**
* Magento admin config
*
* @author Magento
*/
-->
<config>
<menu>
<news translate="title" module="magentostudy_news">
<title>News</title>
<sort_order>65</sort_order>
<children>
<manage translate="title" module="magentostudy_news">
<title>Manage News</title>
<action>adminhtml/news</action>
<sort_order>50</sort_order>
</manage>
</children>
</news>
</menu>
<acl>
<resources>
<admin>
<children>
<news translate="title" module="magentostudy_news">
<title>News</title>
<sort_order>65</sort_order>
<children>
<manage translate="title">
<title>Manage News</title>
<sort_order>0</sort_order>
<children>
<save translate="title">
<title>Save News</title>
<sort_order>0</sort_order>
</save>
<delete translate="title">
<title>Delete News</title>
<sort_order>10</sort_order>
</delete>
</children>
</manage>
</children>
</news>
<system>
<children>
<config>
<children>
<news translate="title" module="magentostudy_news">
<title>News Management</title>
</news>
</children>
</config>
</children>
</system>
</children>
</admin>
</resources>
</acl>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment