Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Menu position vocabulary module

Parent Feed: 

I’ve been using menu position module (http://drupal.org/project/menu_position) for some time and this is a really handy module I must say. It lets you set an active menu item based on different conditions. For example: you want products menu item to be set as active while you’re browsing nodes of content type “Products”.

But I really missed one part of functionality for this module: I wanted to make a menu item active depending on a vocabulary which current taxonomy page belongs to. For example, you have a menu item “Articles” and you want this menu item to be set as active while you browse any category page which belongs to vocabulary “Article categories”.

So I created a menu positon vocabulary module (now is live on drupal.org: http://drupal.org/project/menu_position_vocabulary) which itself is a plugin for menu position module. It provides user with "Vocabulary" tab available in menu position settings. In this tab you can select one or multiple vocabularies, this will activate menu position rule for taxonomy term pages which belong to selected vocabularies.

Pretty simple :) Hope you’ll be enjoying this little addition and yes, now I have a permission to create full projects on drupal.org, so get prepared for more cool modules, I already some on the pipeline.

Tags 

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web