4. Add menu items

Contents

Adding menu items to a menu will be explained using the following example.

In a previous manual we created a menu in general way, which title is "Important Menu".
Let's add two menu items to this menu.
These menu items are:
"List All Pages" with URL [path-to-your-site]/page/list-all-pages
and
"Manage Access" with URL [path-to-your-site]/system-manager/manage-access.

In "Admin General Menu" click the link "List Menus" or go to URL [path-to-your-site]/menu/list-menus.
Scroll down the menu table to the row, where menu's "Human readable title" is "Important Links" and click on this row the link "Add item".

Write to the form field "Human readable label for menu item" the menu label "List All Pages" and to the form field "URL, where this menu item is linking to" the part of the corresponding URL "/page/list-all-pages" (the last part starting with slash and module name path).

Leave other fields as they are and click "Save menu item".
You will be redirected to List of menu items page, where drop-down menu "Choose menu" shows that active menu is "Important Links" and there is a table which shows this previously created menu item.

Click on this page the link "Add a menu item" and add also the other menu item in the similar way, where label is "Manage Access" and URL is "/system-manager/manage-access".

In the table of menu items you can see now two rows and when scrolling down you can see that the the menu "Important Links" is now visible, because this menu has now at least one item.




Previous: 3. Build general menus | Next: 5. Edit a menu item
Menus and blocks
1. Build menus for module methods
2. Build menus for pages
3. Build general menus
4. Add menu items
5. Edit a menu item
6. Other Menu module functionality