Problem with Reaction - Active Menu Listing

Plascual - August 25, 2009 - 16:45
Project:Context
Version:6.x-2.0-beta5
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I'm using a horizontal dropdown main menu on my website, but when it comes to set a menu as active... then some of my menus don't show off in the listing.

Because some of the parent menus use the same link as the first childmenu, I suspect listing to override menus that have the same node link.

#1

Plascual - August 25, 2009 - 23:51
Status:active» fixed

Okay... I found a way to rectify this problem. In fact, I used another module, Menu Firstchild. It allows to link automatically to the first child menu and it works with Context module. You can get it here :

http://drupal.org/project/menu_firstchild

Pascal

#2

Plascual - August 26, 2009 - 00:07
Status:fixed» active

Oops... in fact, it fix only a part of the problem. Now I can access to the menu, but Context - Active Menu works with nodes and Menu Firstchild links to < firstchild >. So it doesn't work properly.

I really don't know how to get around this ?

Anybody ?

Plascual

#3

baxang - November 6, 2009 - 03:49

I don't think Menu Firstchild module works properly with Context module. I had used Menu Firstchild first, and I installed Context today. Top-level menus which are set are not appeared on "Menu trail" list. So I change < firstchild > value to 'real node' like 'node/359' and then it worked properly. On "Active menu" drop-down, it's same. I think Context module doesn't recognise a item with < firstchild > value as a parent menu item. I'm about to give up using firstchild module. Surely all modules I installed are up to date.

add :
I modified some code to just get around this, but unfortunately I couldn't. And I found TODO note on the code that shows developers of context module already aware of the problem. In context_recreations() and context_conditions() function, they use link_path as array's key so when the loop meet < firstchild > value, it overwrite exists item which has < firstchild >. I think it also occur same problem when there are menus that have same 'link_path' value in same root menu.

 
 

Drupal is a registered trademark of Dries Buytaert.