Knowledgebase

How to add and edit menus and menu links in Drupal

In Drupal you can edit any of the existing menus and you can create new menus. To do this log in to the admin panel of your Drupal, click on the Structure tab in the top navigation bar and on the page that opens click on Menus. The next page will display a table with the existing menus. Drupal comes with a few preconfigured menus (e.g. Main menu, Navigation, etc. ). To create a new menu click on the Add menu button that's above the top left corner of the table on the Menus page, and on the page that opens type the title and description of the menu in the respective fields and click on the Save button. A block for the new menu will be created automatically. You can enable that block (Structure tab>Blocks) to make the new menu visible on the frontend.

To manage the menu items/links of existing menus, on the Menus page click on the list links button for the particular menu. This will display a table with the links in that menu (both enabled and disabled). To disable/enable a link unmark/mark its Enabled checkbox. Links can also be deleted by using the corresponding button, but the links in some of the preconfigured default menus cannot be deleted. To change the order of the links use the four-arrow buttons in front of their names or change the row weights.

To add a new link click on the Add link button that's above the top left corner of the table with the existing links. You can also edit the settings of existing links by clicking on the edit button for the particular link. In both cases the settings are the same. You can type a title and description for the link. You have to specify its path; it can be an internal link (in this case just type the path relative to the base URL), or it can be an external link (type the whole URL address). You can also disable/enable the link, change its weight, and choose its parent link.

When you create a new menu, if you want to add links to content items (nodes) in that menu, you should enable it for the specific content type (e.g. article, basic page, etc.). You can do this from the global settings of the content type. Once you do it you'll be able to select that menu when you create nodes from that content type.

For some more details and screenshots you can also check out the HostKnox Drupal menu tutorial.

Was this answer helpful?

 Print this Article

Also Read