Creating a menu and linking content

Drupal provides a way to link content being authored to a specified menu on the website, generally the main menu. You can, however, create a custom menu for providing links to content. In this recipe we will show you how to create a custom menu and link content to it. We will then place the menu as a block on the page, in the sidebar.

Getting ready

This recipe assumes you have installed the standard installation profile and have the default node content types available for use. You should have some content created to create a link to.

How to do it…

  1. Visit Structure and click on Menus.
  2. Click on Add Menu.
  3. Provide the title Sidebar and optional summary and then click on Save.
  4. Once the menu has saved, click on the Add link ...

Get Drupal 8: Enterprise Web Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.