Closed (fixed)
Project:
Nice Menus
Version:
7.x-2.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Dec 2010 at 20:44 UTC
Updated:
10 Feb 2011 at 13:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
SolaFide001 commentedMy D7 install is actually an upgrade of a D6.x site. I also have a pure D7b3 install.
On the upgrade site, the menu uses the D6.x naming - Primary Links, but the pure D7 site has "Main Menu" instead. Perhaps Nice Menu 7.x relies on the new name?
Comment #2
jcarlson34 commentedI also upgraded from D6 and am now using D7RC2 and the 7.x-2.0-dev version.
My dropdown field is also empty. I was able to get the drop down menu to show by changing line 208 in the nice_menus.module from:
'#options' => menu_parent_options(menu_get_menus(), 0),to
'#options' => menu_get_menus(),line 242 from
list($menu_name, $mlid) = explode(':', variable_get('nice_menus_menu_' . $delta, 'navigation:0'));to
list($menu_name) = explode(':', variable_get('nice_menus_menu_' . $delta, 'navigation:0'));and line 245 from
if ($output = theme('nice_menus', array('id' => $delta, 'menu_name' => $menu_name, 'mlid' => $mlid, 'direction' => $direction, 'depth' => $depth))) {to
if ($output = theme('nice_menus', array('id' => $delta, 'menu_name' => $menu_name, 'direction' => $direction, 'depth' => $depth))) {This is probably the wrong way to do it as I'm terrible with PHP but it returned the dropdown menu and I was able to choose from the list.
Not sure why menu_parent_options(menu_get_menus(), 0), isn't working because there wasn't an API change between D6 and D7 for that function...
Comment #3
e-m-h commentedHad the same issue with a fresh D7 and Nice Menus install. Tried the changes posted by jcarlson34, these worked for me. Not a code expert here so can't validate if these changes are right or wrong. All I know is that it solved my issue.
In any case attached is a patch implementing these changes. Likely not a final solution, but works in the meantime.
Comment #4
jcarlson34 commentedAh a patch is much better than my post. Thanks emh.
At some point I've got to learn how to make those things... :)
Comment #5
Augusto182 commentedHello. (i dont speak inglish)
Im using drupal 7, and istall the beta aviable for this module.
I try the changes, and yes, im able to choose the correct menu for the nice menu block.
BUT...
I cant access to the settings, and cant able the js options (superfish).
Tanks a lot.
(pdt: any other menu module for drupal 7)
Comment #6
juhaniemi commentedSubscribe. No "Menu Parent" options available on a Drupal 6 => 7 upgraded site. Works on a vanilla D7 site.
Comment #7
add1sun commentedCommitted to HEAD.