drupal7 main menu activate by content type

so you have created content type using taxonomy and created primary links (main menu as called in drupal 7) using it. Now you nodes are nicely displayed in tabs created by main menu (primary links) but when yo click on a node, drupal takes you to the node page and now no main menu is active, I was excepting to main menu of content type of node is displayed should be active but its node, so how we do that ?

Context module came to rescue, you can create actions and reactions to keep your primary links (aka main menu) active based on content type or taxonomy term etc.


drupal 7 cleanurl windows apache2.2

C:\Apache2.2\conf>grep mod_rewrite httpd.conf
######### enable mod_rewrite
LoadModule rewrite_module modules/mod_rewrite.so

C:\Apache2.2\conf>grep httpd-vhosts.conf httpd.conf
Include conf/extra/httpd-vhosts.conf
C:\Apache2.2\conf\extra>cat httpd-vhosts.conf|egrep -v "^#"

NameVirtualHost *:80
RewriteEngine On
RewriteOptions Inherit

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host
    DocumentRoot "c:/www"
<Directory "c:/www">
    RewriteEngine on
    RewriteBase /tb
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    Order allow,deny
    Allow from all
    AllowOverride All

I had to put
RewriteBase /tb
because my site resides in c:\www\tb

for more http://drupal.org/node/15365