Home

Primary links

  • top o the deck
  • Drupal for Beginners
  • about
  • links
  • give me some sugar

Drupal stuff

  • EDAM
  • STARDOM
  • Question Bank
  • Drupal musings
  • Drupal tips
Home Easy Drupal Admin Manual (EDAM) Organizing Your Content Menus, Links, and Paths: Navigating the Site

Key stuff on this site

Easy Drupal Admin Manual (EDAM)

SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)

Drupal for Beginners

Subscribe to posts by RSS or email

Subscribe to Drupal Ace by RSS feed RSS feed 

Subscribe to Drupal Ace by Email

Donate towards my web hosting bill! Get a great host!

Share and save

Share/Save

Random piece of content

Test post using MarsEdit 2.4

Manuals on this site

  • Easy Drupal Admin Manual (EDAM)
    • Welcome to Your Site
    • First Steps: Please Read!
      • Understanding These Instructions
      • Important Terminology!
      • Best Practices for Site Admins
    • Super Quick Guide (for the experienced and the brave)
    • Logging In
    • Your Administrator Tools
    • Setting Site Basics
      • Setting Site Information
      • Configuring Your Theme
    • Creating Content
      • Node Types
      • Create a Page Node
      • Create a Story Node
      • Create a Blog Entry Node
      • Making Images and Other Files Available
      • Using Text and Image Editors
    • Organizing Your Content
      • Terms, Vocabularies, and Taxonomy: "Tagging" Your Content
        • Taxonomy Suggestions
      • Menus, Links, and Paths: Navigating the Site
        • Content Paths and URLs
        • Creating Links
        • Working with Menus: Administration Form (Drupal 6)
        • Working with Menus: Administration Form (Drupal 5)
        • Creating Menu Items on the Fly
        • Placing Menus on Your Pages
      • Placing Content on pages
        • Creating a page from a Single Node
        • Creating a page from a List of Nodes
        • Setting the Front Page
      • Working with Blocks
    • Maintenance Stuff
      • Maintenance and Construction Notices
    • Other Fun Things
      • Changing Color of Garland Theme
      • Free Aliases!
  • SEO, Traffic and Revenue: Drupalace's Online Manual (STARDOM)
    • Set a Clear Goal
    • Make a Good Site
      • Put out the Welcome Mat
      • Make Great Content
      • Build a Great Brand
      • Make Navigation Easy
      • Tune Site Performance
    • Drive Traffic
      • Promote your Site
      • Get Found with SEO
    • Build a Community
      • Build an Offsite Community
    • Monitor and Improve
    • One-Page Checklist
    • Drupal and the Blogging Starter Checklist
      • Drupal and the Blogging Starter Checklist, Part 1
      • Drupal and the Blogging Starter Checklist, Part 2
      • Drupal and the Blogging Starter Checklist, Part 3
      • Drupal and the Blogging Starter Checklist, Part 4
      • Drupal and the Blogging Starter Checklist, Part 5
      • Drupal and the Blogging Starter Checklist, Part 6
      • Drupal and the Blogging Starter Checklist, Part 7

You said it!

  • Tough one to Inves...

    I have heard and read stories such as this one before, and their common denominator is Drupal...

  • exclude

    excellent tip - can highly recommend the module - installed and working perfectly in drupal 7

  • Great CMS

    This book seems very interesting as I am currently starting a project to build a community site...

  • Thanks!

    Thank you very much !

  • Thank you very muc...

    Thank you very much !

more

SEO & Traffic!

STARDOM

Placing Menus on Your Pages

  • admin
  • content
  • Drupal
  • menus

So you're all up to speed on how to create menus, how to fill them with menu items that link to content, and how to otherwise sculpt those menus to your liking. Great. Now, how about having those menus actually report for active duty and show up on your site?

Displaying menus in general

Drupal's basic policy for handling display of menus is to make each one a block. From there, display is a simple matter. Head to the Blocks administration form:

Navigation » Administer » Site building » Blocks

Among all of your site's blocks listed there, you should see a separate block for each menu you've created. Just follow the standard procedures for displaying a block, and slap that menu onto pages just where you want it. Like any other block, you can choose from among several locations ("regions") on the page to hold the block, set its order among any other blocks displayed in the same region, and even set details such as having the block only appear on certain pages or for certain user roles. Flexible and easy.

See Working with Menus: Administration Form and Working with Blocks for all the grit and grease. 

Displaying special menus

As discussed in Working with Menus: Administration Form, Drupal offers special treatment for a few menus. See that page, and the notes below, for the extra detail you need to know for those. It's nothing difficult:

Navigation menu

You'll recall that this is the menu Drupal automatically creates for authenticated users. Drupal populates it with the menu items a user needs for all of his permitted tasks: create content, edit his account info, whatever he's allowed to do. 

The Navigation menu appears as a block, like any other menu. The only special concern is this: As the Navigation menu is the one users need to handle user-related tasks, you probably want to make sure it's enabled and readily visible to users. In particular, it's your main tool as site administrator, so think twice before removing it from your pages! 

(If you do deactivate the Navigation menu and desperately want it back, don't panic; you can easily get back to the Blocks administration form at the URL <your site domain>/admin/build/block . Go there and make the Navigation menu visible again.)

Primary links menu

As discussed earlier, most Drupal Themes offer a special location for displaying a "main menu" of your most important links, typically in a horizontal line near the top of all pages. You can select which of your menus gets this 'Primary links menu' designation. (Drupal automatically offers one such candidate menu, suggestively titled 'Primary links', though you don't have to choose that one.)

The point of note: Setting a menu as the special 'Primary links menu' doesn't remove its existence as a normal block. It'll still be available in your list of blocks, which you can choose to place in any of the regions normally available for block placement. 

Secondary links menu

Also as discussed earlier, many Drupal Themes also support special display of a 'Secondary links menu', typically a second row of links underneath the special 'Primary links menu' links. You can choose which menu, if any, to designate for this special display.

The point of note here is the same as above: Designating a menu as your 'Secondary links menu' doesn't remove its existence as a normal block. You can still choose to place it as a block somewhere on the page.

Lots of choices

You can see that Drupal offers fairly flexible options for placing menus on your pages. For a specific menu, you can choose to not have it appear at all, or to appear as a block in a region of your choice, or to appear in the special 'Primary links' location, or to appear in the special 'Secondary links location', or to appear in one of those two special locations and appear as a block somewhere. For menus appearing as blocks, you can also (as with any other block) set the menu to appear only for certain user roles, and/or only on certain pages. 

That's a lot of possibilities! Just set something simple at first, and play with more detailed options as you come across the need. 

Share/Save
‹ Creating Menu Items on the Fly up Placing Content on pages ›
  • Printer-friendly version
  • Quote
sayed ali's picture

drupal php programming required

Submitted by sayed ali (not verified) on Sun, 2010-09-26 20:55.

thank you so much for your valuable efforts regarding delivering the knowledge of the strong man Drupal .

actually i am looking to get some details about how to employ our php knowledge in creating drupal module . that would be

appreciated

 

thank you

 

sayed ali  - Egypt - Cairo

  • reply
  • quote

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><br><p>
  • You may quote other posts using [quote] tags.
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options


Relevant Content

The Drupal Ace logo has dealt these content suggestions from the deck.

  • Working with Menus: Administration Form (Drupal 6)
  • Working with Menus: Administration Form (Drupal 5)
  • Creating Menu Items on the Fly
  • Taxonomy Suggestions
  • Menus, Links, and Paths: Navigating the Site
  • Creating a page from a List of Nodes
  • Creating a page from a Single Node

Learn Drupal, hands-on

Get the beginner-friendly ebook that teaches community site building via a live case study.

Drupal 6 Ultimate Community Site Guide

Read the review

It's a deal!

Dreamhost dealsDrupal Ace presides over his domain, proudly ensconced in his DreamHost eyrie. Won't you join me?

Promo code deal!

Just enter the code 49ER when you register for an account, and save $49 off the already-low price. No strings!

Read my hosting service review

Drupal mini tip

Need to disable a Drupal module but can't do so from within the site? (This could happen if the wayward module is preventing you from reaching the Modules form!) Look for the module's entry within the "system" table of the site's database, and set the module's status to "0". 

(From within phpMyAdmin: Select the "system" table from the column of tables at left. Click the "Browse" tab. Find the row for the module you wish to disable, and click the "pencil" icon in that row. In the resulting form, input "0" for the Value of "status", and click the "Go" button. Done!) 

Powered by Drupal, an open source content management system

Copyright 2007 and forever after. Made with Drupal, of course. On OS X, of course. Served up by DreamHost. DreamHost

RoopleTheme