1 |
85ad3d82
|
Assos Assos
|
|
2 |
|
|
NICE MENUS UPGRADES
|
3 |
|
|
===================
|
4 |
|
|
5.x, 6.x-1.x ---> 6.x-2.x
|
5 |
|
|
-------------------------
|
6 |
|
|
There is an update hook and you should run update.php to get things moved
|
7 |
|
|
around properly. Aside from the minor database changes, there are a number of
|
8 |
|
|
things you should be aware of, especially in light of any customizations you
|
9 |
|
|
may have made.
|
10 |
|
|
|
11 |
|
|
THEME FUNCTIONS:
|
12 |
|
|
The theme functions have all been RENAMED to be more in line with Drupal
|
13 |
|
|
standards, so if you are overwriting the functions in your theme's
|
14 |
|
|
template.php or calling the functions anywhere in your theme, you should
|
15 |
|
|
update the function names. The old functions were called theme_nice_menu_* and
|
16 |
|
|
the new ones are theme_nice_menus_*, with an "s" to match the module name.
|
17 |
|
|
|
18 |
|
|
NEW JAVASCRIPT:
|
19 |
|
|
The old JS has been completely removed and replaced with JS that uses the
|
20 |
|
|
Superfish jQuery plugin. It now fires for ALL browsers by default, unless you
|
21 |
|
|
turn the JS off in your settings at Administer > Site configuration > Nice
|
22 |
|
|
menus (admin/build/nice_menus). If you had "Enable IE support" checked under
|
23 |
|
|
older versions of NM, then the new JS will be on by default. If it was
|
24 |
|
|
unchecked in your older version, then the update will turn JS off for you by
|
25 |
|
|
default. If you turn JS off on the site (or a visitor comes without JS
|
26 |
|
|
enabled), IE6 will no longer get the dropdown effect, but all other browsers
|
27 |
|
|
will fall back to CSS-only dropdowns.
|
28 |
|
|
|
29 |
|
|
CSS IDs and CLASSES:
|
30 |
|
|
The menu-$menuid ID has been changed to a CLASS to avoid invalid HTML when
|
31 |
|
|
displaying the multiple menus which use the same menu ID. If you have custom
|
32 |
|
|
CSS that depends on the menu ID then you need to change it to a class. For
|
33 |
|
|
example:
|
34 |
|
|
#menu-3 {color: #ff0};
|
35 |
|
|
would need to be changed to
|
36 |
|
|
.menu-3 {color: #ff0};
|
37 |
|
|
|
38 |
|
|
IE-Specific Class removed
|
39 |
|
|
The legacy "ie-over" class which was added for IE compatibility in the past
|
40 |
|
|
has been replaced with a generic, non-browser-specific, "over" class since
|
41 |
|
|
this is used by Superfish and should be general.
|
42 |
|
|
|
43 |
|
|
5.x ---> 6.x
|
44 |
|
|
------------
|
45 |
|
|
Due to the menu system changes from 5 to 6, when you upgrade Nice Menus, your
|
46 |
|
|
blocks will "forget" what menu they were set to. So take note of the blocks
|
47 |
|
|
and menu settings prior to upgrade, then reset them after the upgrade. See the
|
48 |
|
|
issue at http://drupal.org/node/524688 for more information.
|
49 |
|
|
|
50 |
|
|
|
51 |
|
|
4.7 ---> 5.x
|
52 |
|
|
------------
|
53 |
|
|
The CSS class has changed to change the underscore (_) to a dash (-)
|
54 |
|
|
The 4.7 version of class="nice_menu" is now class="nice-menu" in version 5.
|
55 |
|
|
You will need to adjust any Custom CSS you have added to account for this.
|
56 |
|
|
The default CSS that comes with nice_menus uses this new convention already.
|
57 |
|
|
|
58 |
|
|
Also note that the layout CSS for the module has been broken out into a
|
59 |
|
|
separate CSS file (nice_menus_default.css). You have the option of replacing
|
60 |
|
|
this file by creating a separate customized CSS file, and overriding the
|
61 |
|
|
default CSS file at Administer -> Themes -> Configure -> Global settings ->
|
62 |
|
|
"Path to custom nice menus CSS file". |