Can I link a menu block to a category term??

erik_osaka - November 11, 2006 - 06:04

I've created an 'event categroy' menu which is populated with terms like 'club,' 'bar,' 'tattoo' etc. using the category module and category menu.

I have used administration>>blocks to set this menu to appear on specific nodes. This works fine.

But how do I set this menu to appear on any node that has a certain categroy, like, for example, 'club?' In other words, is it possible to link this menu to a category term so that anytime a user accesses a node with that term the menu item will appear?

If not, how do I det the menu to appear with any node created by the 'event module'?

I really like the ability to connect a menu to a specified node, now all I need to do is figure out how to connect the menu to dynamic content created by certain content types, or category types.

Does this make sense?

You can ... ;-)

scriptnews - November 11, 2006 - 06:25

In the blocks page, chose the configuration link ..

on the blocks configuration page, enter the taxonomy terms as addresses
either for those addresses where You want or where You dont want You menu block to show.

The * is like a "joker" like in

butter/*

it will get all pages which include or come under the term "butter".

Hope this helps.

Roland

Category module as well?

erik_osaka - November 11, 2006 - 11:42

Does this work for the Category module, or only for the core taxonomy module?

I tried to enter in the term 'event type' into the administration>> blocks>> Calendar (which is comes with the 'event' module, and is the block I'm concerned with) but could not get the calendar to display on nodes tagged with the 'event type' term.

I tried listing it using just the term 'event type' the term plus * 'event type/*' and the term in its container structure 'events container/event type/*' but still couldn't get the calendar block to display...

Any advice on what I'm doing wrong?

Also works with category

Venkat-Rk - November 11, 2006 - 14:05

Also works with category module provided you have enabled the category_pathauto module.

Depending on the placeholders you have set up for your containers and categories in pathauto settings, you need to enter the particular terms for which you want this menu to appear ('club,' 'bar,' 'tattoo' ). If you want it only for 'club', you would put club* in the block settings.

If you want the menu to appear for all the terms (categories) of a particular container, then you would put container_name* in the block settings. Of course, this will only work in conjuction with your pathauto settings, as mentioned earlier.

I will try that. Thanks

erik_osaka - November 12, 2006 - 02:47

I will try that. Thanks Ramdak!

got it!

erik_osaka - November 13, 2006 - 10:11

Thanks bro, got it working with the pathauto module! Great advice and awesome module - life just got much easier!

Erik

You're welcome:-)

Venkat-Rk - November 16, 2006 - 16:43

You're welcome:-)

Container name not in URL

FTF - November 22, 2006 - 11:28

Thanks Ramdak for all your posts, they helps me a lot.

This works for me only when I have container/category name in URL like http://example.com/container-name/story, but when I have URLs like http://example.com/story it doesn't work.

I am not sure I understand

Venkat-Rk - November 24, 2006 - 16:05

I am not sure I understand you correctly. Could you try explaining it a bit?

Found solution

FTF - November 29, 2006 - 20:01

I'm sorry for my bad english. However I think I have found solution of my problem: http://drupal.org/node/64135#comment-133988. Now I'm testing it with category module (with little modification).

 
 

Drupal is a registered trademark of Dries Buytaert.