It's possible to add "active" class to the selected menuitem?
Like
<ul class="menu">
<li class="active leaf odd"><a href="sport" title="Sport">Sport</a></li>
<li class="leaf even"><a href="fashion" title="Fashion">Fashion</a></li>
</ul>
Thx, Paul
It's possible to add "active" class to the selected menuitem?
Like
<ul class="menu">
<li class="active leaf odd"><a href="sport" title="Sport">Sport</a></li>
<li class="leaf even"><a href="fashion" title="Fashion">Fashion</a></li>
</ul>
Thx, Paul
Comments
Comment #1
richi commentedHi,
this feature would be very nice for me too.
So i did a little patch on my drupal-system:
File: node_breadcrumb.module
Function: _node_breadcrumb_set_location
After the last line "menu_set_location($location);"
Add:
At my case it works good, maybe it helps someone else.
Comment #2
paloczp commentedHm, not too perfect!
When I use this, lost the "tabs primary" (Preview | Edit etc.)
Thx, Paul
Comment #3
joachim commentedLook at menu_trails module for code to do this -- it has to go in your theme.