amariotti.com

  • about
  • blog
  • portfolio
  • resumé
  • modules
  • contact
Home › Blogs › amariotti's blog

Recent blog posts

  • Text Formatter Module
  • Cool Apache ReWrite Trick
  • New RSS Feed
  • Find My iPhone
  • Congratulations, Drupal!
  • Re-Launched on Drupal 6
  • Copying + Pasting from Word into Drupal
  • Page Not Found on Node Creation
  • 1 Year
  • Happy Birthday WWW!
more

Recent comments

  • Turning off PHP suhosin
    36 weeks 1 day ago
  • The code for D5 is posted
    36 weeks 2 days ago
  • Repost the code please :)
    36 weeks 6 days ago
  • Hi, very nice post. I have
    38 weeks 2 days ago
  • Great post! I'll subscribe
    38 weeks 5 days ago
  • Cool! It works perfectly..
    40 weeks 2 hours ago
  • I'm having the same problem.
    40 weeks 5 days ago
  • Hello again. It's working but
    40 weeks 5 days ago
  • I'm having the same issue, it
    40 weeks 6 days ago
  • Yes, when I open the page I
    40 weeks 6 days ago

Blog tags

drupal drupal 6 drupal issue liquidweb module modules that I love os x random rss Salesforce.com software theming
more tags

Menu Trails

amariotti — Thu, 09/18/2008 - 16:06

A module that I haven't been able to live without since I got into Drupal is called Menu Trails.

This module has been a lifesaver for me and a necessity on most all of my Drupal sites. One thing that I like to do on my Drupal sites is use Views to generate lists of nodes. Views makes that kind of stuff quick and easy. Menu trails fills a gap that, in my opinion, Drupal has completely left out. The Menu Trails module allows you to take node types and taxonomy vocabularies and automatically add them under a certain menu item (retaining breadcrumbs).

After reading that you might say, well that's easy... all I would have to do is type in the Menu Title and select the menu item that I want it to fall under. Well, not only does it save you the time in doing that each time you create a node it also saves your menu table on your database because it doesn't actually add a menu item for each one! The other cool thing that this does for you is helps you retain you breadcrumbs when you navigate to those content types.

The reason I came across this was because I had a News Page set up using views that would pull all of my nodes created with the "news" content type. When you click on the node title to view the full node it wouldn't give you a breadcrumb to go back to the News Page. When I saw this I was a little confused why it didn't do what I wanted it to. Personally, it would be nice if views would do this automatically, but views does enough already!

Unless this gets added into core I will always have this present in all of my Drupal installs. I can imagine that in some cases this won't be needed, but if you are creating custom content types it might just save you a load of time!

Project Page: http://drupal.org/project/menutrails

  • drupal
  • module
  • modules that I love
  • amariotti's blog
  • 2613 reads
  • about
  • blog
  • portfolio
  • resumé
  • modules
  • contact