How to Create a menu in drupal
Submitted by drupal_admin on Wed, 2006-05-31 12:09
HOW TO CREATE A MENU STRUCTURE IN DRUPAL?
Suppose we want to create the following structure
Business Developement - top level menu
|
|__ Channel Partners - sub menu
    |
    |___Maharashtra - page
The following steps are to be followed:
- Click on menus.
- Click on add menu.
- Enter the name of the menu you want to create. In this case "Business Development".
- Click on Submit.
- This creates a menu and a block of the name "Business Development".
- In order to activate the menu we need to make its block visible. Activiating blocks requires admininstrative access. Click on blocks.
- There would be a section of Disabled blocks where in there would be a block with the name "Business Development". Click on the check box of the same and click on submit. This will activate the block.
- Click on menu.
- Scroll at the bottom and there would be a menu "Business Development" wherein we want to add an item "Channel Partners".
- Click on Content -> Create Content -> Page.
- Enter the title of the page - "Channel Partners". enter the description and the body of the page. You can addtionally edit properties like enabling or disabling commens, access control and rich text editor.
- Click on submit.
- This will create the page. Hover your mouse over the view option of the page and look at the url shown in the bottom left corner of your screen. The url will be of type http://apps1.starcomsoftware.com/drupal/?q=node/n where n - is an integer.This is what we need to remember node/n. We have to link the menu item that we create now with this page.
- Click on menus. Scroll to the bottom of the screen where the menu "Business Developement" would have been created. Now we will add a menu item "Channel Partners" to it and link the same with the page created for it i.e. the node/n that was created.
- Click on add menu item. Enter the title "Channel Partners"
-
- Enter the description. That is the help text displayed when u hover your mouse pointer over the menu item.
- Now comes the most important part. Path. Enter "node/n" where n is the number that you noted down when you created a page.
- Now comes the most important part. Path. Enter "node/n" where n is the number that you noted down when you created a page.
- Check the "Parent Item" drop down. In this case the parent item should be "Business Development". If that is something else please change the same by selecting the appropriate parent.
- This will create a menu "Business Development" appearing at the top left of your screen
- The allignment settings of the menu can be changed by clicking on Blocks and changing the default allignment settings.
- Now the menu "Business Development" and its sub menu "Channel Partners" has been created.
- What is left now is to add a page "Maharashtra" to the sub menu "Channel Partners".
- Click on create content -> Page.
- Create a page as described earlier.
- At the end of page creation there is a link for Menu Settings.
- Clicking on it will let you choose the title of the page, the description shown when your pointer is hovered over the page and most importantly choosing a parent of this page. Set the title "Maharashtra" , set the description as per your choice and choose the parent from the drop down menu as "Channel Partners".
- This will create the structure as described above
»
- Login to post comments
- Printer-friendly version
- Send to friend