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...

Comments

tgorg.com’s picture

Status: Needs review » Needs work

This is more like it...

notarealperson’s picture

Any plans on porting this to 6.x? I think this is a key feature for this module.

tgorg.com’s picture

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..

4kant’s picture

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

tgorg.com’s picture

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:

  • Go to admin/build/menu/imagemenu/settings and check the Menuing and Taxonomy influence setting.
  • Create a menu item that links to a taxonomy term or vocabulary page, blog (either blog or blog/user_id, where user_id is the number of the user's blog you wish to view), or root menu page (this would be one of the first level menu items). It can handle aliases too. Just make sure it links to one of these pages. Right now it only does one level.
  • Make sure your sub link is a sub for the page you specified in the image menu item (this can be an alias too):
    • If the imagemenu item is a vocabulary page, the sublink should be a term page (taxonomy/term/term_id).
    • If the imagemenu item is a term page, the sublink should be a node associated with the term.
    • If the imagemenu item is the url "blog", the sublink should be any blog node.
    • If the imagemenu item is the url "blog/user_id", the sublink should be a blog node that is associated with the user.
    • If the imagemenu item is a part of a menu (via admin/build/menu), the sublink should be a node that is part of the same menu, positioned as a subitem of the imagemenu item.

That should be all. The patch does the detecting part...

celadon’s picture

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...

headkit’s picture

has anyone done the patch for version 6?

betz’s picture

interested in the d6 version also. subscribing

cimo’s picture

Subscribing for D6

marcel tuchek’s picture

Also subscribing for D6

Aprioribox’s picture

Thanks, awaiting for D6 as well. Great plugin.

tgorg.com’s picture

Status: Needs work » Needs review
StatusFileSize
new13.75 KB
new2.35 KB
new17.5 KB

Hello. Sorry for the delay (it's been almost a year now), but I have an update for you.

New in this release

  • This release can handle hierarchical terminology (menu item doesn't have to be a link to a root level taxonomy or menu now).
  • Bug fixes for everything I've encountered.
  • Support for forums and the category module (http://drupal.org/project/category).

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

pitxels’s picture

Subscribing for D6

Migala-1’s picture

Subscribing for D6

pobster’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Closing as D6.x is now unsupported.