Download & Extend

Local Menu not expanding if duplicate target nids in menu tree.

Project:Local Menu
Version:6.x-1.6
Component:Miscellaneous
Category:support request
Priority:major
Assigned:Unassigned
Status:active

Issue Summary

I have been using Local Menu in a couple of sites without any issues. I do have one observation and hope to get some feedback/comments:

In some cases a menu needs to be structured in such a way that 2 menu items link to one page. Under this condition, the local_menu does not automatically expands to show the menu branch children.

Here is an example how the menu is structured:

Primary Menu:

About us > link to node #1
- Mission > Link to node #1
--Objectives > link to node #2
--Looking forward > Link to node #3
Programs > Link to node #4
- Internal > Link to node #5
- External programs -> Link to node #6

As you can see on the above example, the "About us" and "Mission" menu items point to the same page (node#1). The top level menu items show up in a horizontal menu. The local menu shows up as a block on a sidebar as a vertical menu as a function of the top level items. The local menu block shows the top Menu item as its title and then expands any children if the item is the current active trail. (at least that's the intent ). However, since the top menu item and the mission menu item are pointing to the same node# then Mission's children are not expanded.

On the other hand if we were to take a look at the Programs link. Then all its children expand as expected.

I know that for most applications any menu item should point to a unique page. However, in this case we are required to duplicate the link destination and change the menu item title. This would make the local menu even more flexible in the cases where we would need to link to one page and two or more anchors within the page ( just a thought).

I appreciate any comments on how to make this happen.

Thanks,

Sandro.

Comments

#1

BTW, I forgot to mention that I have also tested version 1.7 with same results.