Closed (fixed)
Project:
Nice Menus
Version:
7.x-2.1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
4 Nov 2011 at 00:03 UTC
Updated:
8 Sep 2017 at 10:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedThey're trying to solve this on the Context UI side,
#586396: Context Active menu problem
Comment #2
Anonymous (not verified) commentedSolution: in nice_menus.module, inside theme_nice_menus_build()
Comment #3
altrugon commentedTaking the solution mentioned on comment #2 as a guide I have created a patch that not only set the class "active-trail" but also the class "active" for the link.
This patch has been created from the master branch that is the recommended release 7.x-2.0.
Comment #4
altrugon commentedComment #5
altrugon commentedClassic, I upload the patch and then apply it from here and it doesn't work.
Second try, and this one solves a problem with undefined index that the previous patch had.
Comment #6
BarisW commentedCool. Patch works great. Thanks!
Comment #7
Anonymous (not verified) commented#5 worked for me!
Comment #8
vordude commentedI'm inclined to think we could be better off in adding an active class where one belongs instead of creating specific code that works with 1 other specific contributed module? (albeit a popular one)
Comment #9
duaelfr@vordude I agree but waiting for the better solution, this one works ;)
@altrugon Your patch does not seems to activate selected menu parents. Here is a new improved patch based on yours.
Comment #10
osopolarMaybe this fixes this issue: #835090: Context Reaction: Set menu trail
Comment #11
altrugon commentedI can't believe this hasn't been fixed yet, my last post was submitted in 2011 and neither Nice Menu or Context have solved it yet :(
Anyhow here goes another patch against Nice Menu 7.x-2.1 that is the stable release at this moment.
Comment #12
xiukun.zhou commentedThanks a lot to altrugon, DuaelFr, morningtime and everyone else for the great work on the patches, testing, reviews and reporting.
It's more time this got committed and I went ahead and had this rolled at: 7.x-2.x: 6969cde.
Marking this as fixed.
Please let me know if you would have any other questions, comments, issues or concerns on any of these changes, I would be glad to provide more information.
Thanks again to everyne for the help and great work on this issue.
Cheers!