Primary Menu drop down not working

Jack_Sparrow - January 18, 2009 - 19:09
Project:YUI Menu
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I've tried several ways to get this module to work.
I've read the documentation on renaming the path from the Yahoo! server - http://yui.yahooapis.com/2.6.0 (also tried http://yui.yahooapis.com/2.5.0), and uploading the YUI (downloaded from Yahoo!, vs 2.6.0) to http://www.sitename.com/sites/default/files/yui and http://www.sitename.com/sites/default/files/lib/yui.
Also tried with no www. in the URL...

I have created a new Primary meny item, enabled and expanded it, then added new menu items under it...
I set the YUI Menu settings to all possible variations of "Menu Display type", all with and without "Animated Menu" ticked...
No drop downs appear...???

What I found is:
The YUI Rich Text Editor (which I have installed too) works when I have http://yui.yahooapis.com/2.6.0 (or http://yui.yahooapis.com/2.5.0), but the menu (Primary and Navigation) don't work - I.e. No drop down menus appear.
If I change the "Location of YUI library" to the local path (with the various options as described above), then both menu drop downs and Rich text editor do not work...

I've tried this on Drupal v6.9, Drupal v6.8, using IE7 with XP and service pack 3...

Any suggestions?

Thank you...

#1

stoinov - January 23, 2009 - 20:23
Version:6.x-1.1-rc1» 6.x-1.x-dev
Priority:normal» critical

I have the same issue - with a twist.
I have installed YUI-2.6.0 locally on my server. At fist both RTE and menu dint want to work unless I use YUI from the yahoo site. But after some moving around and renaming the yui folder to yui-2.6.0 RTE started working from the local files but the menu still shows only buttons for the 1-st level and doesn't show sub levels. I can see the info for the tree structure is in the source but it just doesn't show the dropdowns unless I use YUI directly from the yahoo site. I tried all the version and its working OK from 2.5.0 to 2.6.0 from the site but with non of them locally.

P.S. YUI Menu on IE8 is very unusable unless you choose compatibility mode.

#2

cloxzime - March 24, 2009 - 04:34

I am having this problem too. Why they created such modules that work and need to configure very hard and difficult. Makes people headache like me. I hate it!

What is buzzing around my head right now is 'files/lib' ... what it that mean? Install inside the folder/directory or just write the 'files/lib' for unknown purpose...?

Please, somebody explain more about this. Yui..yui..yui...why are those modules are created but difficult to understand the needs....

#3

asb - May 30, 2009 - 21:28

Hi,

confirming, similar problem here: no dropdowns appear (Opera 9.x)

Greetings, asb

#4

Net Mystic - June 9, 2009 - 20:05

I am also trying to install the YUI library locally, so I can edit the CSS for theming. The menu drop downs work fine when pulling from Yahoo's server, but not when YUI is installed locally.

Can someone PLEASE help us out! Thanks in advance!

~ Net Mystic

#5

Seabolt - June 25, 2009 - 19:20
Component:User interface» Code
Category:support request» bug report

I'm also having this problem.
For me, it is because the script tags are in the wrong order.
It seems that this is due to the use of drupal_set_html_head() instead of drupal_add_js() in yuimenu.module and yui.module.

#6

tnlone - October 16, 2009 - 05:32
Priority:critical» normal

I had the same problem with the YUI menu. I tried this work about and it's working with breeze.
I hope this helps people:

1.Download and install YUI module in your module directory.

2.Download and install YUI Menu Module in your module directory.

3.Enable both the modules at you admin/build/modules page

4.add this code to your page.tpl.php page at sites/all/themes/

<?php
if (module_hook('yuimenu','menu') && ("tns" == variable_get('yuimenu_type','tns') || "tnm"==variable_get('yuimenu_type','tns')) ){
?>

<?php
print html_menu(variable_get('yuimenu_root','1') );
?>

<?php
}
?>

where ever you want the YUI menu to be visible.

5.Downlaod the latest library from the Yahoo API or this link. Extract the library in your root folder of localhost. NOT YOUR DRUPAL FOLDER.

6.Rename the extracted folder 2.0.5

7.Now check it's accessible from the browser by typing this http://localhost/2.5.0 or http://yoursitename/2.5.0

8.Now go to admin/settings/yu page and change the Location of YUI library: to http://sitename/2.5.0 where (sitename is to be replaced by your sitename)

9.Click save and go to admin/settings/yuimenu and mark your preferences.

10.This should solve the problem.

#7

carneeki - November 5, 2009 - 14:37

Hello tnlone,

Thanks, your instructions worked like a charm in D6! :)

Regards,

Adam

 
 

Drupal is a registered trademark of Dries Buytaert.