Exercise 3: Assign the related links menu block to a region
When you create a new menu, GovCMS automatically creates a menu block for the menu. Now we need to assign this menu block with an area on the website.
Go to Structure → Block layout (/admin/structure/block)
Find the Postscript 2 area and click the Place block button
Filter the list - Related Links. Select Menus block “Related Links” → Place block
Click Save block
Now check your site to make sure the Related Links menu block is in the Footer
Next, we’ll restrict visibility so it doesn’t show throughout the site
The last step is to configure the new menu block.
  1. 1.
    Go to StructureBlock layout and find the Related Links block. Click Configure.
  2. 2.
    Configure the Title. We’ll leave it at the default, but this is where you can:
  • Enter a new title
  • Unselect the Display title checkbox to remove the block title
  1. 1.
    In the Visibility settings you’ll notice three options:
  • Pages - display the block on specific pages
  • Content Types – display the block alongside specific content types
  • Roles – display the block to specific roles
You’ll often need to alter a block’s Pages visibility settings. For this exercise, we want the Related Links menu to appear only on the About us page we created earlier, and the homepage of our site.
  1. 1.
    Under PagesShow for the listed pages, enter the URL paths of the pages that we want to display the block, e.g. /about-us-0
  2. 2.
    On a new line in the Pages text area, enter <front>. This will ensure your Related Links menu block is displayed on the front (home) page of your site.
  3. 3.
    Click Save block.
The Related Links menu will only be displayed on the front and About us pages.
Export as PDF
Copy link