Closed (fixed)
Project:
SimpleMenu
Version:
5.x-5.0
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2008 at 00:42 UTC
Updated:
15 Mar 2008 at 03:14 UTC
Jump to comment: Most recent file
Comments
Comment #1
m3avrck commentedThanks for the patch! I'll explore Drupal 6 soon with some ideas to further improve this module, thanks for the starter patch!
Comment #2
coltranePatch didn't apply cleanly for me to 5.x-4.0 and Drupal 6.0.
(Stripping trailing CRs from patch.)
patching file simplemenu.css
(Stripping trailing CRs from patch.)
patching file simplemenu.info
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file simplemenu.info.rej
(Stripping trailing CRs from patch.)
patching file simplemenu.js
(Stripping trailing CRs from patch.)
patching file simplemenu.module
Continuing anyways and manually adding
core = 6.xto simplemenu.info and enabling the module the navigation menu doesn't show in the simplemenu. Going to the simplemenu config page and submitting it with Navigation set as the menu doesn't fix it nor does selecting another menu.Also a javascript 404 error is given on every page for simplemenu/menu.
Comment #3
ax commentedtry this patch (against latest 5 version, ie. either DRUPAL-5 or DRUPAL-5--5-0). based on starbows patch, with the following changes:
* updated superfish.js to latest version 1.4.1 to work with Drupal 6's jQuery 1.2.3.
* moved superfish.js out of simplemenu.js to ease further upgrades
* don't append <ul class="menu"> (the menu returned by simplemenu_theme_menu_tree()) to <ul id="simplemenu">, but make former the latter (by adding 'id="simplemenu"' to it). this dom hierarchy is what superfish,js and *.css expect (and why the menu didn't show before).
* removed the "Add devel module links" functionality. the much changed Drupal 6 devel.module now returns its links through a custom menu, so it can be put anywhere in the menu tree shown by simplemenu.
* fixed simplemenu_expanded_tree_page_data(). this shouldn't be a copy of menu_tree_page_data(), which returns a menu based on the current page, but of menu_tree_all_data(), which returns the *whole* menu for a custom menu. thats why i renamed it to simplemenu_tree_all_data(). modified it to accept any menu item as root param, not just the root of a custom menu).
this works for me as of today.
TODO:
* get (a modified version of) simplemenu_tree_all_data() into core. the functionality of getting all menu items below a certain root item certainly is not only needed by simplemenu. menu_tree_all_data() unfortunately doesn't do this - it only provides (as alternative to getting the whole tree of a custom menu) the tree from the root of that custom menu down to a certain item. but not all items below a certain item.
Comment #4
ax commentedmissed a case. we don't want the "Select the menu to display." (eg. "Administer") to display, only its submenus (eg. Content Management, Site building, etc.)
Comment #5
jbrauer commented+1
This patch works like a charm against DRUPAL-5
Comment #6
ax commenteddoes anyone mind if i commit this to DRUPAL-6--1 and create a 6.x-1.x-dev release?
Comment #7
patrickfgoddard commentedPatch failed for me:
"patching file simplemenu.info
Hunk #1 FAILED at 1.
1 out of 1 hunk FAILED -- saving rejects to file simplemenu.info.rej
patching file simplemenu.js
patching file simplemenu.module
patching file superfish.js
"
Added "core = 6.x" manually to .info file, enabled and works fine (so far).
Comment #8
ax commenteddid you patch against a clean DRUPAL-5/DRUPAL-5--5-0 simplemenu install? there are no patching errors, i just tried again. you probably had simplemenu.info patched already. setting back to RTBC.
Comment #9
m3avrck commentedI'll properly create a 6.x version and branch once this patch has been ironed out and I can fix a few other things.
Comment #10
jbrauer commentedRegarding #7 I got this same error when I tried to patch against the tarball and solved it the same way. When I patched a fresh CVS copy of DRUPAL-5 the patch applied correctly.
Comment #11
marafa commentedis this downloadable as a module yet?
Comment #12
m3avrck commentedI'll get this packaged up this weekend...
Comment #13
ax commented@m3avrck: my offer of committing this to DRUPAL-6--1 and creating a 6.x-1.x-dev release is still valid :)
Comment #14
anantagati commentedPatch from #4 works good. Applied on DRUPAL-5--5-0.
Comment #15
thomas_green commentedI'd love it if you'd check it in to DRUPAL-6--1.
Comment #16
ax commented@m3avrck: you give me a go?
Comment #17
m3avrck commentedreviewing all of this and committing it in a few :)
Comment #18
m3avrck commentedthanks guys this has been committed!
there is still an issue if you use the "black & blue" theme as the menu doesn't have the black bg anymore.
no time to look at that now but if someone has a patch for that let me know!
Comment #19
00drup00 commentedDid anyone check this version to work properly in IE6?
It displays right in ff and ie7.
But not in ie6, see attachment.
Is this a js or css problem?
Appreciate your comments.
Thank you.
Comment #20
ax commentedworks for me with the original theme. note what m3avrck said above:
please submit a new issue (and if possible a patch) for that one. thanks!
Comment #21
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.