Closed (duplicate)
Project:
Context
Version:
6.x-2.0-beta5
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Aug 2009 at 11:09 UTC
Updated:
21 Apr 2010 at 15:17 UTC
Why is the Active menu reaction tied to the menu set as primary links? I can see lots of examples where you would want to set a menu item as active that is not in the primary links tree. Why not use the complete menu tree?
Comments
Comment #1
markabur commentedyes, and if there's some technical limitation then the context UI shouldn't show the other menu items as available for activating.
Comment #2
markabur commentedas a followup, i found a way to use the active-menu-item feature for an arbitrary menu. in MYTHEME_preprocess_page(), run the menu links array through context_menu_set_active():
this sets class=active on both the anchor and the li.
Comment #3
vegardjo commented+1 - This would (among other things) be very useful when building features with more levels of links!
Comment #4
steven jones commentedNot sure if this is still the case. Should be an RC blocker if it is.
Comment #5
steven jones commentedDuplicate of #442882: Document the menu links issue