thumbnail access on photo.tpl

bjunior

Joined: 2010-10-26
Posts: 3
Posted: Tue, 2010-10-26 23:51

Hello,

I'm customizing a template based in the Matrix default template in Gallery 2.3.1

In the photo template, I want to implement a thumbnail navigator with 3 images: previous, current and next.

I've discovered how to access the previous and next "thumbnail" elements with the following code:

{if isset($theme.navigator.back)}
<a href="{g->url params=$theme.navigator.back.urlParams}">{g->image id="%ID%" item=$theme.navigator.back.item image=$theme.navigator.back.thumbnail maxSize=98}
<img src="http://dl.dropbox.com/u/42035/obvious/images/arrow_previous.png" width="100" height="100" title="Previous" class="arrow_previous" />
</a>
{/if}

{if isset($theme.navigator.next)}
<a href=" {g->url params=$theme.navigator.next.urlParams}">{g->image id="%ID%" item=$theme.navigator.next.item image=$theme.navigator.next.thumbnail maxSize=98}
<img src="http://dl.dropbox.com/u/42035/obvious/images/arrow_next.png" width="100" height="100" title="Next" class="arrow_next" /></a>
{/if}

My problem is: how can I access the "current photo" thumbnail??

Any help is very wellcome.

Regards,
Jr