Posted by Plascual on August 25, 2009 at 4:45pm
Jump to:
| Project: | Context |
| Version: | 6.x-2.0-beta5 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
| Issue tags: | context-2.x-rc-blocker |
Issue Summary
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
#1
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
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
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.
#4
If there's a todo, should look at this.
#5
Duplicate of #653698: Menu Trail Condition incorrectly displays depth.