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

Plascual’s picture

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

Plascual’s picture

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

baxang’s picture

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.

steven jones’s picture

Priority: Critical » Normal
Issue tags: +context-2.x-rc-blocker

If there's a todo, should look at this.

steven jones’s picture

Status: Active » Closed (duplicate)