I'm using the menus modules (cvs version), with the patch found in one of the other issues on drupal cvs version (build on monday 01/03/04). Everything works fine, except that menu items with subitems don't expand when I click on them. Menu items and subitems are also links to static pages. When I use the option expanded in the menu config, the items are always expanded and not only when the item or one of the subitems is selected.

See for working demo: http://www.opendtect.org , the versions used there are drupal 4.3.1 and menus 4.3.0.

Please help me :)

Regards,
Ivo

Comments

jhriggs’s picture

Project: »
Component: » Code
Assigned: » jhriggs
Category: » bug
Priority: » Normal
Status: » 0

This was due to a bug relating to path aliases. This is fixed in CVS 4.3, 4.4, and HEAD. The patch to which you refer is now deprecated.

kc’s picture

I downloaded the latest version, 4.4.0 and creted a menu with this structure:

Stories
--Section1
--Section2

What am I supposed to do to make it that initially Stories is collapsed and when you click on it it expands and shows the sub-items.

Currently depending on whether I select enable or disable from settings it either collapses and does not expand when I click, or it is always expanded.

Thanks

kc

Clemens’s picture

Category: bug » support

I notice these URLs generated by Menu when you click on a second level choice:

http://cisci.org.au/drop/?q=?q=node&q=&menus_expanded[25]=1

Note the '?q=?q'

I am also concerned that the Menu configuration options I get in Administer >> Configuration >> Modules >> Menus. The accompanying text appears to suggest that there should be MORE options than:

Module status:

version status operations
1.1.0 installed [remove]
[save configuration] [restore defaults]

What configuration does it save when I click that button? There appears to be nothing to configure...

Please assist.

Clemens’s picture

Title: Menu item does not expand when selected » Error message

When I clicked on the [save configuration] button mentioned in my previous post, I encountered this error:

warning: Invalid argument supplied for foreach() in /usr/www/users/cominf/drop/modules/system.module on line 343.

What is happening? Please assist.

Anonymous’s picture

Anonymous’s picture

Title: Error message » Menus don't expand and contract

I have a fresh install of 4.4.2 with Menus 4.4.0 and am having the same symptoms as described in post #2. Is this the 'as-designed' behavior? If so is there another menu system that will expand/contract? Is this project still active?

See the 'Main Menu':
http://bsc.dreamhost.com/

Thanks,
Tom

zardoz-1’s picture

Oops -- newbie makes a bad. I was using the Navigation module when I reported #6 above. I switched to this Menu module and they are collapsing and expanding just great. I had installed several and was trying them each in turn.

Sorry!
Thanks for the module!

bradleyg’s picture

Assigned: jhriggs » bradleyg
Category: support » bug
Priority: Normal » Critical

I am also having the same probs as in post #2 - i'm using 4.41 and can't expand the menus past the 2nd level. i'm using the lastest menus module on cvs. Ideas?

thanks

greg2’s picture

Priority: Critical » Normal

URL is: http://209.59.184.215
Version: 4.6.1
Issue: Menus do not expand / contract when clicked.
Not sure where to look?

Greg@ltcc.com

bittner’s picture

Title: Menus don't expand and contract » Menu does not expand when linked to a (static) page
Project: » Menu on-the-fly
Status: 0 » Active

I still do have the same problem as described above. I have Debian/testing with the latest version saying 4.5.6-2 (as of apt-cache show).

All the menus on the websites at the posted URLs work fine though. Can anyone of you guys post the solution here? It would help much if someone pointed out what to change in the code directly, I don't want to copy a new Drupal version onto the system manually. (Really, I don't understand why the Debian version of Drupal is so much out of date!)

Specifically, my problem is that the menu perfectly expands when I create menu items in a menu that link to a *non-existing* node! When I specify a valid node it does not.

Actually, I do access my menu items from an HTML code in a Drupal document saying
<a href="?q=menunode/menuitem">...</a>
where the document's node-name is "menunode/menuitem" (I am trying to get the URL look as if the document is in the subtree of "menunode").

Do I do somethong wrong? How do I fix this problem?

bittner’s picture

Title: Menu does not expand when linked to a (static) page » My 'menu does not expand' problem
Project: Menu on-the-fly » Drupal core
Component: Code » menu system

Okay, I fixed it. Actually, Greg fixed it.

The problem was that it is not valid to specify the alias for the "Dupal node" when you add a menu item. You do have to specify the node in the "node/xyz" notation.

Wouldn't it be much more userfriendly to allow aliases too and/or resolve those aliases when such a menu is added?

Thanks so much to Greg! You're cool!
Peter

avpaderno’s picture

Version: » 4.6.x-dev
Issue summary: View changes
Status: Active » Fixed
avpaderno’s picture

Status: Fixed » Closed (fixed)