Hi,

I have an "about us" item on the main navigational menu.

The "about us" item has three items on it's sub-menu.

The problem is that, when you click on one of the items on the sub-menu, you're taken to the correct page but the sub-menu then collapses.

I've found the option to leave the the sub-menu expanded but REALLY want the user to be able to expand and collapse the sub-menu themselves by clicking on the parent item and otherwise for it to stay in whatever state it's in.

Thanks.

Comments

drpr’s picture

I have the same problem with an item I added to the navigation menu. When I click the submenu item the page loads but the submenu collapses. I notice that the administer menu does not have this problem.

I have been playing with a very simple menu for some time now trying to fix this, but with no luck.

Does anyone out there have a solution ?

artatac’s picture

Perhaps look via firefox/firebug at the various states in css of the secondary menu

regards

joe

drpr’s picture

I've done a little experimenting and found that if the submenu item is a link to a node, say node/4 then the submenu stays expanded when the submenu item is clicked.

If the submenu item is a path to a view then the submenu closes.

Not sure what this tells us, but it's maybe a clue.

artatac’s picture

let me have a web address and I will look at it

Regards

Joe

drpr’s picture

I'm developing locally at the moment but I've just set up a basic site to demonstrate. Go to http://www.drpaulr.co.uk/drupal

You'll see 2 items in the navigation menu. Node Menu has a link to a node as a submenu item, View Menu has a link to a view as a submenu item.

UPDATE
I think that I have figured it out. The link to a view menu item above was created by creating a menu item and giving it the url for the view that I created (in the Administer/Site Building/Menus page)

If I create the menu item in the view pages (in the Administer/Site Building/Views page, just below the link that allows you to create the path) then the submenu item stays open when it is clicked on.

I've updated the site at the link above to show the working and non-working scenarios.

Of course this causes me another problem since you can't specify a parameter to the end of the url when creating the menu item from the edit view page.