Previous Next Thumbnails

travelvice
travelvice's picture

Joined: 2005-07-16
Posts: 112
Posted: Thu, 2008-01-03 23:01

Howdy,

I'd love to drop a thumbnail of the previous and next images on photo pages (similar to this).

I was wondering what code fragment is needed to conjure this up with the Siriux theme (no hover effect needed) -- locking the preview images at 148px wide, regardless of the height.

Thanks for the brain power!

//craig

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Fri, 2008-01-04 01:44

That site uses the greypop theme. Change to that theme or try to copy some of the code from photo.tpl to your theme.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
travelvice
travelvice's picture

Joined: 2005-07-16
Posts: 112
Posted: Sun, 2008-01-06 06:33

That theme seems to use the block of code to reference the 'previous' image thumb:

{g->image id="%ID%" item=$theme.navigator.back.item image=$theme.navigator.back.thumbnail class="previous" class="%CLASS%"}

...though doesn't appear to do much other than generate an error in the Siriux theme.

[Render error]

Thoughts on a next step?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Sun, 2008-01-06 18:24

Using the greypop photo.tpl file in the matrix theme seems to work. Perhaps you did not copy enough code?
if you have "Show micro navigation thumbnails" set to on in the album properties.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
travelvice
travelvice's picture

Joined: 2005-07-16
Posts: 112
Posted: Sun, 2008-01-06 18:47
Quote:
if you have "Show micro navigation thumbnails" set to on in the album properties.

There is no such toggle in the Siriux theme :\ Perhaps I can set it with code?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25961
Posted: Sun, 2008-01-06 20:03

You would need to look at the code of the greypop theme and add it the Siriux theme. Theme.inc might have some incite as well for setting the microthumbs.
Switch to matrix and use the greypop photo.tpl or use the greypop theme, if you are not comfortable with creating your own custom theme.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team