Working with Menus
Static Menu Locations
This is a quick cheat sheet to help you identify some of the menus included on your site by default.
Note that often if you create a custom menu, it will often be placed in the right sidebar (not pictured here).
- A is Audience Navigation
- B is Utility navigation
- C is the Main Menu
Creating a New Menu
- Click Structure, then Menus, and then +Add Menu.
- The Title is the name of the menu. This will be visible to site visitors.
- You can make the Title a link by going to Structure, then Blocks
- Click Configure next to the menu you want to edit and check the box next to Display Link.
- Click Save Block to commit your change
- The optional Description field displays on the previous page where all of your menus are listed. It can help to identify the menu.
- Click Save. The menu has now been created, but it won’t display on your site until you:
- Add published links to it
- Configure the menu's block
To Configure the Menu's Block
- Click on Structure, then Blocks
- Locate the menu's block and click Configure next to it.
- The block will have the same name as the menu
- If you just created the menu, its block will appear under the Disabled section
- Under Region Settings, select the dropdown next to the active theme and change it to Right Sidebar.
- The active theme will be denoted parenthetically with (default theme).
- Use the Visibility Settings to configure what pages the menu will appear on.
- Use the radio buttons to select if your menu will appear on all pages except those listed, or only the listed pages.
- List pages by copying their path into the text area provided – one page per line.
- A page path is everything after the homepage URL and first backslash:
departmentname.calpoly.edu/path-goes-here
Adding Pages to the Menu
- Click on Structure and then Menus
- Click on List Links or Add Link next to the menu you want to edit.
- List Links allows you to:
- Edit existing links
- Use the checkbox under Enable to show or hide existing links
- Click on +Add Link to add a new link
- Add Link takes you directly to the page you use to add a new link to your menu
- List Links allows you to:
- Menu Link Title is how the link will appear in the menu, and how it will appear to visitors on your site
- A page path is everything after the homepage URL and first backslash:
departmentname.calpoly.edu/path-goes-here
- Drupal will attempt to auto-complete this field, so if you just start typing you will see suggestions.
- For example, if you know a page title has the word "About" in it, type in "About" to see a list of pages where that word appears.
- You can click on one of those suggestions to select it as your destination page. Drupal will change the text to "node/xx" where "xx" is a number. This confirms that you have successfully entered a destination for this link.
- Drupal will attempt to auto-complete this field, so if you just start typing you will see suggestions.
- The optional Description field displays when visitors hover their mouse over the link.
- Leave the checkbox next to Enabled checked, otherwise the link will not appear on your menu
- If you want you want to have submenu items nested underneath this link, check the box next to Show As Expanded.
- Click Save.
Set and Edit the Mega Menu
- Mega Menus can accommodate much greater number of navigation links, as well as more complex menu structures. If you would like to set it up for your site, please click here to check out the directions.