Any way to use Taxonomy terms as primary menu instead of creating a page or story for primary menu?

goodtimes247 - October 31, 2009 - 04:04

currently, my articles i'm writing falls under 8 taxonomy terms. I would like to create a menu for primary links on the top nav bar to each category. example, I have honda, ford, toyota articles that fall under the taxonomy term "Cars". On the nav bar for primary links, i want to a tab that says "cars", it'll show everything recent that's labeled under "Cars". Is this possible or is there another way around it?
thanks

Just do it!

dman - October 31, 2009 - 04:12

What have you tried so far? That will just work.

Taxonomy term pages have urls like 'taxonomy/term/n' where n is the term ID. It may also be aliased if you've done that or are using pathauto.
When you visit the admin site building menu page, you can add menu items to the primary links, so add an item, and enter that URL (chop off your site root, just 'taxonomy/term/{n}' is required)

Done.

You can also get edit_term.module which will give you an alias editor and menu editor right on the term-edit screen. But if you only want to do half a dozen, just add them using the normal UI.

.dan.

Thanks!

goodtimes247 - October 31, 2009 - 23:41

Dan, you are the man! Just the answer I was looking for! Thanks again!

GT

On my primary menu, each link

tdy - November 6, 2009 - 00:03

On my primary menu, each link "lights up" whenever the page that it points to is active. How would I go about making it "light up" any time you're viewing something that has been tagged with a taxonomy term?

e.g. Let's say taxonomy/term/3 will take me to my "foo" tag. The "foo" button in my primary menu lights up when i'm on this page, but if I click on any of the articles, the menu button goes inactive. I'd like the menu button to be active for all individual "foo" pages as well.

How would I go about doing this? Hope I explained it well enough.

I understand the question, am

dman - November 6, 2009 - 00:39

I understand the question, am not sure of the best fix.
menutrails.module is the closest solution I know of.

It's a bit of a dilemma when supporting nodes that are not really under a term, just associated with the term, and you can have multiple tags. Which one is the 'parent'. Drupals 'active trail' scheme may be limited in that case.
In your case, you just want them highlighted, not necessarily as a parent, so your request makes sense.

.dan.

Thanks, this sounds like what

tdy - November 6, 2009 - 19:27

Thanks, this sounds like what I'm looking for. I haven't figured out how to use it with taxonomy terms yet, only node types, but it should at least get me on the right track. Node types will work fine anyway, even if I can't figure out how to use taxonomy terms with it.

This also led me to find pt2ami.module, which seems to be along the same lines and prioritizes multiple terms via primary_term.module.

Thanks again.

 
 

Drupal is a registered trademark of Dries Buytaert.