Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: paloczp commentedHm, not too perfect!
When I use this, lost the "tabs primary" (Preview | Edit etc.)
Thx, Paul
Comment #3
joachim CreditAttribution: joachim commentedLook at menu_trails module for code to do this -- it has to go in your theme.