Thumbnail access on photo.tpl

bjunior

Joined: 2010-10-26
Posts: 3
Posted: Tue, 2010-11-09 01:39

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:

            <ul class="navigator">
            
            <li class="previous">
            {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}
            </li>
            
            <li class="current">
            {g->image item=$theme.item image=$image maxSize=98}
			</li>
            
            
            <li class="next">
            {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>
            </li>
            {/if}
            </ul>

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

Any help is very wellcome.

Regards,
Jr