Create a custom menu

If you need to create a series of links, consider creating it as a menu block. The custom menu option creates a unique list of links, including

  • an optional title for the link collection (displaying the title is optional when placing)
  • your choice of displayed text for the link
  • a field to embed a link to an email address, internal page in your site, or external URL

How to create a custom menu

  1. Using your admin panel, navigate to Manage » Structure » Menus.
  2. From the top of the list locate and click the blue button labeled + Add menu.
  3. The Add menu screen will ask you to provide:
    • a Title - this is required for the purposes of identifying the menu in the system, but you can choose to not display the title or even change it at the time you place it in a region in your site
    • an Administrative summary - not required, but very useful, especially as your custom library of blocks grows over time. Using the summary field you can identify how this block is intended to be used and where, making it easier to find when search in the primary block list.
      Link list and configuration options for the custom menu
  4. Click the Save button to continue.
  5. You will proceed to the Edit menu screen and click the + Add link button.
  6. Enter a Menu link title and Menu link. Please note the rules for links: Start typing the title of a piece of content to select it. You can also enter an internal path such as /node/add or an external URL such as http://example.com. Enter <front> to link to the front page. If you enter in an email address, preface the email information with mailto:. Example: mailto:jjsmith@ucdavis.edu. 
  7. Scroll to the bottom and click Save.
  8. Repeat steps 5-7 until you have added all your links. 
  9. Your custom menu is now complete and available for use in your site. Visit the Blocks documentation for steps on how to add menus and other types of blocks to your content.

Placing a Menu Block on a single page

  1. Navigate to the page where you want to place the block and click on the Place Block button in the upper right corner of your screen in the Admin panel.
  2. Use the + button to select your preferred region, then filter for your block by name or scroll through the list to locate your menu block.
  3. Click the Save Block button.
  4. Verify the menu has been placed on your page when you're returned to the normal View screen.

Placing a Menu Block on many pages

Because your site can only handle so many blocks, it's important that you consolidate your blocks whenever you can. Adding a menu to a list of pages one by one would result in the creation of multiple instances of you menu block when, in fact, you only want one. This is the most efficient process for doing so.

  1. Navigate to the Block Layout page.
  2. Locate the region where you want your block to display and click its Place Block button.
  3. Filter for your block by name in the dialogue box or scroll through the list to locate your menu block.
  4. Click the Save Block button.
  5. Locate your newly placed menu block in the selected region and click on its Configure button.
  6. Use the block's Visibility | Pages section to list the pages that should all display this block in the chosen region. You have these options:
    • List each page by its URL Alias, each on its own line. Example:
      /news/ucdavis-news-today
      /news/putah-creek-development
      /blog/helpful-hints
      <front>
    • Select entire sections of your site based on how you've structured your URL Path Settings. All content under a parent page will be denoted by the page name followed by '/*'. Example:
      /news
      /news/*

Demo Example

An example of a working menu block, titled Students I, has been added to this page in the footer.