How to use thumbnails as previous/next buttons How to use thumbnails as previous/next buttons
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

How to use thumbnails as previous/next buttons

Started by Sarre, January 06, 2006, 09:18:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Sarre

Hi,

When looking at a photo, I would like to have a thumbnail of the previous photo as a link to that previous photo, and a thumbnail of the next photo as a link to that next photo.
How should I do this?

Thanks,
Sarre

ecto

An easy "solution" would be to enable the film strip (in Config -> Image view) and set "Number of items in film strip" to 3. You would then have "kind of" a navigation below the picture.. not complete or a "real" solution, but it might suffice?

Sarre

I've been thinking of that allready, but I'm affraid it wouldn't help, as I need to be able to position the images at the top of the page...

What I need to know, is how to pass the url of the previous image and the url of the next image into the $template_img_navbar block.
Perhaps changing the filmstrip code somewhat might work, but I have no idea how to do that...

Thanks for the answer though!

ecto

As some kind of start for further coding, $params in function theme_html_img_nav_menu() should include new keys, like NEXT_THUMB_URL and PREV_THUMB_URL. Then just edit $template_img_navbar to include that instead of the standard {LOCATION}images/next.gif.

Question is, as you say, how to get the URL's of prev and next thumbnails to populate $params. I haven't looked into that, dunno if I have the time..

Sarre

Hi
I took a new look into the filmstrip function, and managed to change it so that it only shows the previous and next thumbnail!
Thanks for the advice!