Book Image

Learning Joomla! 1.5 Extension Development

Book Image

Learning Joomla! 1.5 Extension Development

Overview of this book

Table of Contents (17 chapters)
Learning Joomla! 1.5 Extension Development
Credits
About the Author
About the Reviewer
Preface

Creating backend menu items


Within the<administration> tags in the XML file, we define the items found under the Components menu item in the backend. If we were only managing one type of record, the following piece of XML would be sufficient for linking to the backend:

<menu>Restaurant Reviews</menu>

However, our component manages both reviews and comments. To handle this, we want the Restaurant Reviews item to expand into two submenu items. In the following XML, we enclose the menu items in a<submenu> tag. The first item uses link to define a hard link to index.php?option=com_restaurants, and the second uses view to form a link to index.php?option=com_restaurants&view=comments.

<submenu>
<menu link="option=com_restaurants">Manage Reviews</menu>
<menu view="comments">Manage Comments</menu>
</submenu>