In a typical situation I would like to have my gallery presented in pages, let's say 12 images per page. Users will browse through the pages and eventually they will click on an image. Then in the image node they will see the image itself and below that - a strip with a few image thumbnails for easy access to the adjacent images to the one being displayed.

The problem with the current implementation is that the same view is used to display both the gallery and the thumbnails below the CCK Image. I would suggest to add another option in the configuration page that will allow the admin to select a separate view that will show the thumbnail strip under the image on one line. It will be exactly the same view as the one for the gallery, the only difference will be that it will show (for example) 3-4 thumbnails per page and will probably not have a pager.
And why not add an option of not having the thumbnails displayed under the image at all?

That part I think should be fairly easy to implement. More interesting will be to synchronize the CCK image and the view that displays the thumbnails around the current image. Currently you see the big image above and below a page from the view that may not even show a thumbnail of the image above.

Have a look at the following example: http://coppermine-gallery.net/demo/cpg14x/displayimage.php?album=random&...
... the main image is displayed above and below there is a portion of the gallery with a few (not all) images immediately surrounding the one being displayed. If you click on a thumbnails below, the selected image's thumbnail is again centered in the thumbnail strip. So the image above and the strip are synchronized.

CommentFileSizeAuthor
#11 cck_gallery.diff5.77 KBpascalduez

Comments

greg.harvey’s picture

Assigned: Unassigned » greg.harvey

I've already implemented next/previous links (the tpl files have changed, so you might need to re-copy them to your theme) with an image thumbnail, which is kind of what you mean. Take a look. At the moment it only shows one image either side of the main imagefield for the node, but I could make that configurable, say between one and three context images. Would that do it?

kirilius’s picture

Yes, but please add also an option of displaying zero context images - just clean node. Sometimes it makes sense to show a clean image node.

greg.harvey’s picture

Ok, good point - in the meantime, just delete the variables from the template. =)

kirilius’s picture

By the way, you say that "the tpl files have changed" but where are they? The latest release available is from Feb 5th and those tpl files are still the old ones.
Thanks!

greg.harvey’s picture

Sorry - looks like I haven't committed them yet. My mistake! =(

kirilius’s picture

Hi, no rush, but do you have an idea when those will be available in a downoadble release??

jjjames’s picture

Yeah, looking forward to that new template so I can test and report. Thanks alot for implementing this :)

Oh an aside: Could those preview thumbnails be in a block that automagically knows what the next and previous images are in the set? That way, you could put the strip of images wherever you want.

Thanks for all the hard work gregDOTharvey!

kirilius’s picture

Good idea that about the block!

jjjames’s picture

Just checking to see if you have commited yet?
thx

greg.harvey’s picture

Templates should be committed now. Sorry for the delay. Other features to follow...

pascalduez’s picture

StatusFileSize
new5.77 KB

Hi. For a project I'm working on, I needed to implement the Previous and Next thumbnails in a block, to gain more layout flexibility.
So it adds an additional block called "Gallery NextPrev".
I wrapped the Next/Prev thumbnail creation code into a new function, and use it for the block and the template variables, so they can still be used on node content if needed.

This is a start, and have to be improved, like markup output, code duplicate...
I added a few css classes for styling.

Hope it helps.

greg.harvey’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.