Drupal - Main Menu


Advertisements


In this chapter, we will study about how to Create Menus in Drupal. Menus are very important to navigate your website easily.Menus offer a set of links as a result, you can navigate your website. The Drupal menu allows you to add, remove and rename the menus and menu items.

Following are the simple steps to create menus in Drupal.

Step (1): Click on Structure -> Menus as shown below

drupal main menu

Step (2): Further, click on Add menu option to add menu.

drupal main menu

Step (3): Next, you need to fill in the required details as shown below.

drupal main menu
  • Title: It displays title in the Administrator Menu bar.

  • Description: Enter a brief description about the menu. The description field will display only in the admin dashboard under the menu list, but it does not display any information to site visitors

After filling all the information about the menu, click on Save button to save your created menu bar.

Step (4): Once you save the menu bar, the following screen will get displayed. Here you have to define the path link to your created menu page. Click on Add link as shown below.

drupal main menu

Step (5): Next, you will see the created Menu1 page as shown below.

drupal main menu

It contains below fields:

  • Menu link title: Specify the name of the menu item.

  • Path: Specify the url path of the page which you want to display.

  • Description: Description about the menu link.

  • Enabled: It enables the item to display on menu.

  • Show as expanded: If it consist of sub menus, then it will be displayed under parent menu item.

  • Parent Link: It sets the main structure of menu.

  • Weight: Sets the order of menu items.

After filling all the information about the menu link, click on Save button, this will save your Menu link.

Step (6): Further you will see the following screen as shown below.

drupal main menu

Step (7): Click on Structure -> Menus then you will get the following screen as shown.

drupal main menu

Here, you will see the created Menu1 name in the list of Menus.



Advertisements