Closed (duplicate)
Project:
Context
Version:
6.x-2.0-beta5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
25 Aug 2009 at 16:45 UTC
Updated:
21 Apr 2010 at 09:49 UTC
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.
Comments
Comment #1
Plascual commentedOkay... 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
Comment #2
Plascual commentedOops... 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
Comment #3
baxang commentedI 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.
Comment #4
steven jones commentedIf there's a todo, should look at this.
Comment #5
steven jones commentedDuplicate of #653698: Menu Trail Condition incorrectly displays depth.