Is anyone sucessfully using the menus module?

I am struggling a bit with menu behavior.

If the main menu item has a URL associated, it will not expand to reveal it's sub-items. The page associated with the menu comes up but the menu does not open up.

Separately, if an item (or sub-item) does have a URL associated, when it is clicked the whole menu structure collapses instead of staying open.

Also, I recall when I first tested menus that the behavior changed depending on whether the URL specified was absolute (http://foo.com/subject/subsubject) or relative (subject/subsubject) and I thought that odd at the time. However, I did not write down the behavior and cannot recall what was happening.

Comments

Tuxito’s picture

I do have the same problems with the menu, described here:
http://drupal.org/node/view/6167

I posted it 6 days ago, but till now nobody told me how to solve this problem. Hope someone can help us out!

jxs2151’s picture

Ummm, it looks like it is working on http://www.opendtect.org

Did you do something?

Tuxito’s picture

If you read the post linked in my previous reply, you'll see that it's working with drupal 4.3.0 with menus 4.3.0, but now I want to use drupal 4.4.0 (or latest cvs version) and the menus module isn't working anymore. If I may guess, you're using also the latest cvs version of drupal with the cvs version of the menus module.

jxs2151’s picture

Okay, I was a little confused.

I am using menus 4.3.0 and drupal 4.3.2 and cannot get it to work. Any pointers?

Tuxito’s picture

To get the menus on opendtect.org working, I just installed drupal 4.3.2 and menus 4.3.x, made an taxonomy for it and it worked. Nothing special, so I don't get it why it isn't working with drupal cvs and menus cvs, I want to know what's changed, that caused this to work no more.

jxs2151’s picture

What are you specifying in your individual menu configuration for url.

Mine looks like this:

Item URL
---- ---
Church Life churchlife

-- Family Night churchlife/familynight

-- Worship Team Schedule churchlife/worshipteamschedule

-- Duty Schedule churchlife/dutyschedule

Keep in mind that I am using cleanurls and urlalias, which shouldn't matter. What are you specifying for your menu items' urls?

Tuxito’s picture

Menu items:
name	URL/description	expanded	operations
Main	node/view/26
<none>	no	edit item
-- Latest News	taxonomy/page/or/22
<none>	no	edit item
-- Conferences	taxonomy/page/or/23
<none>	no	edit item
What is OpendTect	node/view/32
<none>	no	edit item
-- What can you do	node/view/41
<none>	no	edit item
-- Screenshots	image/tid/29
<none>	no	edit item
-- License Info	node/view/42
<none>	no	edit item

Copy & paste of the first few items of my menu. This works for me with 4.3.x stuff, not with cvs stuff.

jxs2151’s picture

Would you mind emailing me the menus.module that is currently running on http://www.opendtect.org so I can diff it or maybe use it on my site to fix my issue ?

I wonder if the author updated the code between when you dl'ed the module and when I dl'ed it?

jxs2151@hotmail.com

matt westgate’s picture

The menus module is now updated to work with the 4.4 release. You might want to try it out.

Tuxito’s picture

I tried this a few minutes ago, but when a main item is a link to a page and it also has some subitems, it will not expand. If the main item is not a link to a static page, it will expand (in the address bar you get something like: ?menus_expanded[12]=1 added to the url).

I'm not really into the code of drupal, so it will take a lot of time to try to fix this problem myself, but I really need a fix.

Thanks anyway for this try!

jxs2151’s picture

Thank youThank youThank youThank youThank youThank youThank you.

The module in the CVS contains updates for 4.4 and thus would give errors when used with 4.3.2 so I took the changes made on and near line 885 and replaced what was in the old module.

This worked.

Tuxito’s picture

I tried this module again, this time with the latest drupal-cvs version. It still doesn't work for me, can anyone explain me how to configure this module/drupal to get this working with the latest drupal version and the latest menus version.

At http://www.opendtect.org you can see a example of how I need this module to work. I'm using clean url's now, with path aliasing. Please help!

matt westgate’s picture

I visited your site and the menus seems to be working for me. I.e., I click on 'Users' and the submenu appears, then I click on a submenu item and the submenu remains expanded.

Tuxito’s picture

As you can see in previous posts, that site is running drupal 4.3.2 with menus 4.3.0. The problems I'm talking about is with drupal cvs (4.4rc) and menus cvs, a little difference :)