7 replies [Last post]
arpieb's picture
Offline
Joined: 10/28/2009
Juice: 81
Was this information Helpful?

I'm building a site on LAMP D6.14 + UC2 for a car parts business, and I have one major issue that I hope someone has run into before - and hopefully overcome...

Due to the nature of the site, I have some highly-detailed, hi-res parts books schematics (over 7000 px on a side) that I need to place a scaled down view of on the category page where the products are listed, yet be able to zoom in on portions of that image for detailed views and in order to read text/numbers on the schematic.

At first blush, the Zoomify module looked like it could do it, but it only works on ImageField or Image node data, which it appears is not what is being used in the UC2 catalog.

Has anyone implemented a catalog using Zoomify on D6 + UC2, or something similar? If not - anyone got a suggestion as to a good starting point? You can see the current dev snapshot of the site at to see what I'm trying to do - and why the Zoomify functionality is critical:

http://octobang.com/isettasrus

Thanks!

-R

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Zoomify on catalog images...?

Ubercart actually does use imagefield, it's just not using the the proper CCK formatters to display them. You can tell Ubercart to not display the image field at admin/store/settings/products/edit/fields and then turn on Zoomify for it. I haven't used it, but that's probably in the "Display fields" settings for the product type.

arpieb's picture
Offline
Joined: 10/28/2009
Juice: 81
Lyle, Thanks for the info on

Lyle,

Thanks for the info on the product images - that was probably going to be my next question, but you jumped ahead on me... Smiling

My question is about the *catalog* images that are tied to the vocabulary terms. If you look at my dev site, notice that when you drill down to a certain product listing page - say "Home » Parts Catalog » BMW Isetta 250/300 » Engine" and there is a schematic at the top of the content area that is too small to see detailed notations and smaller parts. That is the image I'd like to be able to offer mouse-over zooming functionality into a 7000x7000 px detailed scan of that schematic. In order to make that image large enough to see the detail necessary, it has to be sized to over 2000 px in width - which is obviously too big to fit on the page, or even most users' screens to boot.

Supposedly Zoomify is able to offer this kind of functionality, but I have to gain access to those images as either Image nodes or ImageFields. In poking around the UC2 code, it looks like these are strictly being loaded as images from imagecache which I don't think Zoomify will work with.

Is this going to be a hack into the UC2 code, or is there a way to "theme around" them to get Zoomify to work?

Thanks!

-R

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Lyle, Thanks for the info on

Oh yeah, you did say catalog. Unfortunately, there isn't a good way to attach images of any kind to taxonomy terms. There may be a taxonomy_image module, but I've never used it. Chances are that it doesn't use imagefield either because fields have to be attached to nodes. (If things go well, this will change in Drupal 7.) It might use the Image module, though, which Zoomify may be able to handle.

The catalog module is very specialized, though, so it doesn't integrate with other taxonomy changing modules very well. But you don't have to use it if you can get the same kind of effect from other modules like Views.

arpieb's picture
Offline
Joined: 10/28/2009
Juice: 81
Re: Zoomify on catalog images...?

I saw in another post where someone was customizing the layout of the catalog pages by overriding the theme_uc_catalog_browse() hook in their theme. Would this same approach work if I can figure out how to hook the Zoomify formatting logic into the overridden hook for image display?

I'm thinking that since this is where the catalog theme is defining the catalog page image tags, it might be a good place to modify the image display behavior...

The only catch seems to be that the images are displayed by calling the theme() method within theme_uc_catalog_browse on the image or imagecache modules:

  if (!empty($catalog->image)) {
    if (module_exists('imagecache')) {
      $output .= theme('imagecache', 'uc_thumbnail', $catalog->image['filepath'], tt('taxonomy:term:'.$catalog->tid.':name', $catalog->name), tt('taxonomy:term:'.$catalog->tid.':name', $catalog->name), array('class' => 'category'));
    }
    else {
      $output .= theme('image', $catalog->image['filepath'], tt('taxonomy:term:'.$catalog->tid.':name', $catalog->name), tt('taxonomy:term:'.$catalog->tid.':name', $catalog->name), array('class' => 'category'));
    }
  }

Maybe overriding the theme hooks for theme_imagecache_formatter_uc_thumbnail_XXX() within my theme would do the trick...?

wbclassics's picture
Offline
Joined: 01/25/2009
Juice: 55
Re: Zoomify on catalog images...?

I've got a similar need to use zoomify on category / catalog pages, so I'll be following this thread and your progress to see what you come up with.

Thanks, K

arpieb's picture
Offline
Joined: 10/28/2009
Juice: 81
Figured out!

Thanks to kratib's help, we got it hammered out over on the Zoomify module's support issue queue. Check out http://drupal.org/node/623446

-R

zeezhao's picture
Offline
Joined: 04/23/2008
Juice: 969
Re: Figured out!

subscribing, thanks.