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

markabur’s picture

yes, and if there's some technical limitation then the context UI shouldn't show the other menu items as available for activating.

markabur’s picture

as 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():

$links = menu_navigation_links('menu-communities', 0);
$links = context_menu_set_active($links);
$vars['communities'] = theme('links', $links, array('class'=>'communties-menu'));

this sets class=active on both the anchor and the li.

vegardjo’s picture

+1 - This would (among other things) be very useful when building features with more levels of links!

steven jones’s picture

Issue tags: +context-2.x-rc-blocker

Not sure if this is still the case. Should be an RC blocker if it is.

steven jones’s picture

Status: Active » Closed (duplicate)