Posted by kirilius on February 28, 2009 at 7:55pm
I have a content type "Gallery", which has an imagefield with multiple images allowed. When my gallery is displayed, I would like to have:
1) The current (single) image displayed in larger size (proper imagecache preset used)
2) A strip of thumbnails below, that show all (or some of) the images in the imagefield so that the viewer can select from them.
Here is an example that has exactly this functionality (Coppermine gallery):
http://coppermine-gallery.net/demo/cpg14x/displayimage.php?album=random&...
Can this be done with imagefield? Any suggestions?
Comments
Any ideas?
Any ideas?
Try Using Attachments
Unless you are tied to imagefield for a specific reason, attachments from the core upload module are a reasonable way to do this.
See the Galleria module for some sample code: http://drupal.org/project/galleria
Doing the same thing with imagefield ought to be possible, but you will have to customize more to use a different data source.
Ken Winters
www.coalmarch.com
Ken Winters
Galleria has exactly what I
Galleria has exactly what I need in terms of presentation. However I don't like the fact that it relies on attachements. I am trying to build a site where end users will create galleries and upload pictures. The concept that a picture is an "attachment" to a gallery is just wrong. At least it is not intuitive for the average web surfer. Not to mention that the Drupal's upload module does not show thumbnails of the uploaded images.
You should be able to
You should be able to customize around that fairly easily. I think the data source for Galleria is only in one or two places, and you can set it to pull from some other field instead of the attachments. It's something we were planning internally for a while, but haven't gotten around to it yet.
Ken Winters
www.coalmarch.com
Ken Winters