O'Reilly logo

Drupal 7 Cookbook by Dylan James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a submenu block

In this recipe, we will first populate our main menu with sample menu items by creating some basic page stubs. Following this, we will learn how to create a submenu block that will display a submenu generated from the main menu items.

Getting ready

For this recipe, you will need to install and activate the Drupal Menu block module: http://drupal.org/project/menu_block.

This recipe also assumes that you have the Bartik theme installed and set to default. If you are not using Bartik, simply select a different region for your block in step 19.

How to do it...

  1. Select Add content from the admin shortcut menu.
  2. Select Basic page, then enter About us in the Title field.
  3. In the Menu settings tab check Provide a menu link, and confirm ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required