Blocks and Taxonomy

Events happening in the community are now at Drupal community events on www.drupal.org.
ithacaindy's picture

I am using the menu blocks module to display parts of my primary menu items in blocks in the right sidebar. I want to display the blocks in certain sections (an 'Inside Sports' menu block would appear only on the Sports term of the 'Topic' taxonomy. My problem is blocks can only be limited by page (about, front, etc.) and not taxonomy.

How do I limit block visibility based on taxonomy?

Comments

http://drupal.org/node/320795

Taxonomy Visibility

amcoms's picture

I have the same issue but it is specifically related to panel and custom page types as well so maybe need to use context?

I could disable the taxonomy link but then this view is very usefull but not functionaly if I can't display the menu in the left block.

Any ideas please on how to get the menu block to display on txonomy views?

Andrew

Taxonomy Blocks

1websitedesigner's picture

Hi,

There's a couple of ways of doing it. One is to use Automatic Aliases, set these to take the taxonomy into account and then specify in the blocks which URLs the blocks should appear on, e.g. sport/*

Another way is to use custom PHP code in the blocks, there's more information on that here:
http://drupal.org/node/113651

Cheers

Martin

www.indigoextra.com

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: