Using CCK, imagefield, imagecache and thickbox you are able to have an amazing, simple, automatic, hassle free gallery attached to any node you want!

It doesn't get more simple than this folks...

Before you start, install all 4 modules, and enable them.

1. In imagecache, create a "thumbnailer" namespace. I personally set mine to resize to 100x100 (outside dimensions) then crop from center to 75x75. This gives me pretty square thumbnails.

2. Create a content type, say "Story with Gallery" with a CCK Image field, making sure to select "Multiple Values". I selected 640x640 as my dimensions limit. Under "Display fields", for "Full" select the "Thickbox: thumbnailer" namespace that was created in step 2.

Done!

Now when you make a new "Story with Gallery" you can upload as many pictures as you want and they are all thumbnailed nicely with links.

To solve the issue of all the thumbnails in a vertical row, you can use CSS, or a module such as contemplate.

I wanted just to give the community the easy way out, after wrestling with this for some time.

Comments

hypothesis’s picture

oops, in step 2, "created in step 2" should be "created in step 1"

bwv’s picture

Nothing like re-inventing the wheel ;-)

http://drupal.org/node/144725

(Congrats for finding out this method on your own!)
----------------------------------------------------------------------
http://www.bwv810.com/

I am a writer and researcher. In my spare time I build websites with Drupal.
Je peux communiquer en français. / Я могу общаться на русском языке.

hypothesis’s picture

Thanks, I saw that originally, but even that was too complicated for my taste, so I did away with views, and custom pagers. That whole part with views kind of seemed unnecessary to me...

omnyx’s picture

imagecache module as my files settings is set to 'private'. Can I use use image module somehow with thickbox to get the same functionality?

cheers!

hori’s picture

This is very nice, I was looking for a simple image gallery like this one, but I can't seem to position the thumbnails...

Is it possible to explain how we can position the thumbnails in a grid with contemplate or CSS?

That would be much appreciated!
thanx

hypothesis’s picture

I use the contemplate module to format my nodes, including the gallery