Menu active image, Active image based on vocab/menus, uninstall script.
thomas_vg1 - August 19, 2008 - 03:26
| Project: | Imagemenu |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
A bunch of features in these patches:
- Menus now have a active menu item/mouseover image. This was mostly copied from the code here: http://drupal.org/node/280660
- Menus can be active if the menu item is a taxonomy, blog, or root menu page, and the content is part of that taxonomy, blog, or menu. Really quick and simple edit, but really important feature for site builders like me.
- Uninstall and upgrade script. The database needed to be updated to support the new image fields.
Disclaimer: I'm not a PHP guru. There's probably something that needs to be done before it's golden. The following has not been tested:
- Hierarchical menus (I use imagemenu mainly for root menu stuff)
- Uninstall hasn't been tested. Upgrade functionality has been sorta tested...
Also note that I made two diffs, one for each file changed, from a comparison of files I had on my Windows computer (and not from the cvs). It might not be done correctly. Let me know if I need to do something different...
| Attachment | Size |
|---|---|
| imagemenu.install.patch | 2.35 KB |
| imagemenu.module.patch | 11.59 KB |

#1
This is more like it...
#2
Any plans on porting this to 6.x? I think this is a key feature for this module.
#3
Not at the moment... I'm currently working with 5.x for all of the sites I do, sorry.
I do have an update with a few things that were updated/fixed for 5.x though... Sooner or later I'll get to posting it..
#4
Thanks for this patch!
This module is a must have for some drupal projects - even more it has a working active state.
In my case the active state is shown when I click on the link.
Is it possible to keep this active-state when I click on on a sublink of this link?
(Only one level would be enough)
Thanks
4k
#5
The simple answer is yes, but it depends on the kind of sublink. Right now it only works with the types listed in the patch description. I forgot to show everyone how to get this to work, so I'll show you here...
How to get this to work:
That should be all. The patch does the detecting part...
#6
Cool, I will take a look at this and see if I can bump it up to 6.x - I made a hack for my current site that does an Active page image, but I think your vocab/menu design is probably way better.
I also added an option for a right-float instead of left-float, but it still needs work since the query needs to be sorted in reverse order if you float right. I should probably add that as a separate patch...
#7
has anyone done the patch for version 6?
#8
interested in the d6 version also. subscribing
#9
Subscribing for D6
#10
Also subscribing for D6
#11
Thanks, awaiting for D6 as well. Great plugin.
#12
Hello. Sorry for the delay (it's been almost a year now), but I have an update for you.
New in this release
I'm currently using this in a production site, so I'm guessing everything is ok bug-wise. Let me know if you notice anything....
Unfortunately I don't have a version for Drupal 6 (I may have one at the end of this year, as I have another project where I'll probably use Drupal 6). I don't think it's entirely hard to port, so if you feel up to the task, go for it...
I'm including the individual .patch files, as well as a zip file with the fully patched module so people can start using it right away. If you have the original imagemenu module installed, you will be able to upgrade using upgrade.php, although I don't remember testing it.
Thanks,
Thomas
#13
Subscribing for D6
#14
Subscribing for D6