Add link to image gallery in node (Image/CCK)

Karlheinz - June 25, 2009 - 19:08

Hello, all.

I'm using the Image module to create image galleries. I'm also using CCK to create a Live Event content type.

What I'd like to do is have the ability to link to a specific image gallery within a Live Event node. Preferably I'd be able to show a thumbnail of the gallery.

Is this possible? It seems like it should be easy to do, but I can't see how.

No?

Karlheinz - June 27, 2009 - 16:49

Nobody?

Does anyone know how to include a thumbnail link to a gallery, in any way? Maybe I can start there.

-Karlheinz

_

WorldFallz - June 27, 2009 - 22:17

I don't have image installed anywhere at the moment-- but doesn't each gallery have a unique URL? Just create a link to it on the event node (either with a text field or maybe a link module field). I'm not sure what do about the thumbnail-- which picture in the gallery would you choose to be the thumbnail?

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Links & thumbs

Karlheinz - July 2, 2009 - 18:44

Hi, WorldFallz.

Yes, each gallery does have its own URL. However, you would have to know the specific URL for each gallery, and if this changes (e.g. if you change the title of the gallery later) the link wouldn't work anymore. The Image module doesn't save the gallery in a node, so I couldn't use a node reference field either.

The thumbnail for each gallery is automatically set by Image Gallery. I have no problem with this, but I don't know how to access it outside of the default gallery page that is generated by the Image module.

Is there another module, or set of modules, that would give me this functionality? My requirements are that it not be a Flash gallery, and that it integrates (or at least doesn't conflict) with Image Attach and Lightbox2. Are you doing something similar? If so, what modules do you use?

-Karlheinz

_

WorldFallz - July 2, 2009 - 18:54

I use cck, views, imagefield, imagecache, and some type of presentational module or jquery script (ie lightbox2, shadowbox, galleria, etc). I like this method because both galleries and images are nodes and therefore you have the ultimate in flexibility to tweak functionality any way you need to.

For a great video on this method see http://www.lullabot.com/articles/photo-galleries-views-attach.

_
Don't be a Help Vampire - read and abide the forum guidelines.
If you find my assistance useful, please pay it forward to your fellow drupalers.

Hmmm...

Karlheinz - July 2, 2009 - 20:04

This method looks good... Unfortunately, it's also incompatible with the way my site is set up at the moment.

Part of the reason I used Image is that it provides most of this functionality out of the box. But Image is incompatible with ImageField. For that matter, I also use the Audio module, which apparently would require conversion:
http://geeksandgod.com/tutorials/computers/cms/drupal/drupal-converting-...

The way things are going, I might have to make the switch anyway, but I'd rather not if I don't have to.

Maybe I'll file this as a feature request in the Image module queue.

-Karlheinz

 
 

Drupal is a registered trademark of Dries Buytaert.