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

2008 is here: the Drupal Ace to-do list

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

Recent comments

  • It worked

    adding $GLOBALS['tempUser'] = $user; worked but I find it worth noting that I had to delete...

  • very good document...

    very good documentation for beginners!!!!!! thanks!!

  • del penitential 62

    strike out abject
    eliminate penitent 5

  • Chat

    Thank you a lot about very beneficial to my work was very useful thank you

  • Drupal Resources f...

    I would start learning from the "Diving In" section above. That links to the good beginners'...

more

SEO & Traffic!

STARDOM

Creating Menu Items on the Fly

  • admin
  • content
  • Drupal
  • menus

The Menus administration form is one place where you can create menu items (see Working with Menus: Administration Form). But when you create or edit a node, you also have the option of creating a menu item for the node, right within the node creation form.

On the go!

For example, you create a node with company information, and want a link to that node to appear within a menu you've earlier created and titled 'site menu'. You could create the node, head to the Menus administration form, and then create a new menu item within that 'site menu' menu.

The alternate way to do the same: When you create the new node, you can create a menu item right then and there. On the form for creating your node ('Submit Page', 'Submit Story', or whatever it happens to be), look under 'Menu settings'. There you can set the following three properties (and in Drupal 5, a Description of the menu item as well):

Menu link title

Input the title of the menu item. That's what will appear within the menu.

Parent item

What menu will this menu item appear inside? Choose one here.

The pop-up list shows your existing menus and all of their menu items. You can simply select the title of a menu to have your new menu item inserted at the normal "top level" of that menu, or you can select a menu item to make your new menu item a "child" sub-menu item of that "parent" menu item.

Weight

As discussed in Working with Menus: Administration Form, "weight" is an older and somewhat clunky way of setting the order of items within a menu. A much easier method is to ignore weight, and later order your menu items with simple drag-'n'-drop. Head to the linked page for more info.

What's the path?

The above on-the-fly menu item creation is similar to creating a menu item using the Menus administration form, with one key difference: Here you don't need to set a path for the menu item. You're creating a menu item for the node you're in the midst of creating, so of course the menu item will automatically link to the node's path!

Further editing

Want to later edit the menu item you've created (or delete it, or move it, or whatever)? No problem. Use the regular Menus administration form.

Restricting on-the-fly menus

As noted above, when making a menu on the fly, you can place it under any menu or menu item that appears in the "parent item" list (which should be all of the menus and menu items in your site).

But if you have multiple users allowed to create content, you may want to restrict their placement of on-the-fly menu items into just one menu. For example, if you allow users to submit news articles to your site, you might restrict them to creating on-the-fly menu items under a menu called 'news stories', and not under other menus on your site.

To do this:

Navigation » Administer » Site building » Menus

Click the 'Settings' tab.

In Drupal 6, the pop-up list 'Default menu for content' lets you select which menu will be the default choice for users who create menu items on the fly.

In Drupal 5, at the bottom of the form under 'Content authoring form settings', you'll see 'Restrict parent items to:'. Here you can set the single menu to which on-the-fly menu items will be restricted. (Keep it at 'Show all menus' for no restrictions.)

Overall, this is an esoteric detail that many sites won't need to worry about at all.

Share/Save
‹ Working with Menus: Administration Form (Drupal 5) up Placing Menus on Your Pages ›
  • Printer-friendly version
  • 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)
  • Placing Menus on Your Pages
  • 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

Drupal mini tip

Site visitors seeing your ugly error messages on the screen (along with details of your Drupal installation path)? Once your site goes from dev to launch, you probably want to have errors recorded in the log but not splashed across the screen. Head to the handy Error Reporting settings found at admin/settings/error-reporting. 

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

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