Exercise 1.4: Build the related links menu
Last updated
Last updated
In this exercise, we’ll add a Related Links menu item. This can be broken into two stages:
Go to the menu administration page – /admin/structure/menu - hover over Structure on the Admin menu then click Menus. Click on the Add menu button at the top right of the page.
Type in the name of our menu in the Title field: Related Links.
Type in a menu description in the Administrative summary field. While the description is optional, it helps site administrators understand the different menus, especially if the site has lots menus.
Click Save to create the new menu.
Now that you’ve created the custom menu, you need to add in the links to existing pages. You can do this in one of two ways:
Adding links to the menu when you edit the specific content pages/section.
Adding the items manually via the menu interface.
On the Admin menu hover over Structure → Content types, then click on Page.
Scroll down and click on the “Menu settings” item. Under Available menus, enable Related links.
Click Save content type.
Add content using the Page content type and create the following new pages:
About us
FAQs
Disclaimer
Privacy policy
Make sure you select "Provide a menu link" and select the parent item "Related links" for all pages. See the screenshot below for an example.
On the Admin menu hover over Structure → Menus then click on Related links. The new pages you created now appear in this admin area.
You can also add the links manually by following these steps:
In the menu administration page, click Add link at the top of the Related links. At the menu link creation page type in these settings:
Link: type About and select About us.
Description: Jobs Posting About Us page.
Menu link title: About us
Leave the other settings at their defaults and click Save.
Repeat the steps above for any remaining menu items.
Finally, you can re-order the links on your menu.
Go to Structure → Menus to see a list of all your site’s menus.
Click on Edit menu to the right of the Related links menu entry. You should see a list of the menu items we just created as in the previous screenshot.
You can drag and drop the menu items to re-order them. Then click Save configuration.
Note: Another way to change the menu order is to change the ‘weight’ of the menu item when you’re editing the content.