Dear Jeff,
Newswire is a beautiful theme and the suckerfish menu looks great in all the browsers I tested.
Around line 85 on the washington.css, I added this portion of code :
#suckerfish a.active {
background: #003366;
color: #FFF;
}
It allows primary links to be highlighted (see the attachment below).
Now, the idea is to keep the primary links highlighted when you navigate in the sub-menus. In other words, when I am the sub-menu 1 of the menu 2, I would like to see the menu 2 still highlighted. To my knowledge, Acquia Marina is the only Drupal theme allowing such a feature (but this theme doesn't use the suckerfish menu).
This question of "parents and children" has already been raised in a discussion of the Zen Task Force Group but I don't think it helps for the suckerfish menu.
Thank you for your help and I wish you the best for 2009.
Gilles
http://autoluttre.be
| Comment | File | Size | Author |
|---|---|---|---|
| image_1.gif | 6.08 KB | gillesbailleux |
Comments
Comment #1
Jeff Burnz commentedWhat you are after is active-trails, there are several ways of doing this and are well dicussed issue here on drupal.org. You may find that the .active-trail class is being added to the menu items already so you would just need to modify the css to style the links using that class. Otherwise search for setting active-trails - theres quit a lot of info already.
Let me know how it goes or if you need further assistance.
I'm switching to support request because I dont think it would be wise to include such a specific feature in a generic theme, also Drupal already adds active trail classes for certain menu configurations.
Comment #2
gillesbailleuxDear Jeff,
After more than three hours looking for the right place to add a.active-trail, yes, please, I would love to have further assistance.
Gilles
Comment #3
Jeff Burnz commentedhttp://www.google.com/search?hl=sv&client=opera&rls=en&hs=eOv&q=drupal+6...
From that result this page explains it in one sentence - http://www.avecossi.com/2008/Sep26/menuact
Your link leads me a broken web page, so I cant actually look to see if you have added child menu items so their parents get the .active-trail class.
Comment #4
gillesbailleuxDear Jeff,
First of all, thank you for your time and patience.
I re-uploaded your newswire theme because I made too many changes.
Now I do not see in which css has to be changed. Could it be possible to make a step by step instruction ?
THANK YOU !
Gilles
Comment #5
gillesbailleuxDear Jeff,
Thanks to a recent post on avecossi.com well titled «The 10 Second Way to Keep Parent Menus Active When Children Are Also Active in Drupal 6», I am happy to close this support request with the solution. Just add
in the newswire_washington.css
Thank you again.
Gilles
http://autoluttre.be