3. Build general menus


The building process of general menus is otherwise the same, as building menus for pages.
The main difference is, that by choosing menu type, while adding or editing a menu, the chosen type options should not include the phrase "extended access".

Example of creating a general menu.

In the following example a menu called "Important Links" will be created in general way.

In "Admin General Menu" click on the item "Add Menu" or go to URL [path-to-your-site]/menu/add-menu.

Enter to the form field "Menu name for computer" menu code "importantLinks" and to the field "Human readable title for menu header" the string "Important Links".

Leave the menu type as it is by default, which should be:
"Classic menu, all options open, with title (usually vertical)".
Unlike in the manual "Build menus for pages" choose the menu type here which does not include phrase "module menu" and default option should be good for that.

Leave other form fields as they are and click "Save menu".
The meaning of the other form fields is explained in more detail on manual page "Build menus for pages".

Now an informative page will show up - click there "Add block!" or go to URL [path-to-your-site]/block/add.

Write "importantLinks" to the form field Block code.
Leave other fields as they are and click Save.

You will be redirected to the list blocks page, where you can see in the table, that there is now a block with code "importantLinks".
Click in admin menu List Menus and you can notice in the menus table, that there is a menu, which "Menu name for computer" (i.e. menu code) is "importantLinks".
This menu is not visible yet, because it has no items.

In the next manual we will add, edit delete items for it.

Previous: 2. Build menus for pages | Next: 4. Add menu items
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