Overview -------- This example template shows how to have a page of text links that will display the preview thumbnail when the surfer places their mouse pointer over the link. The template uses JavaScript code to display the thumbnail when the surfer places their mouse pointer over one of the gallery links. This template makes use of the jquery.js JavaScript library included with TGPX so you may need to adjust the reference to that script if it is located in a directory other than /tgpx/includes on your server. Template Code ------------- {define name=globaldupes value=true} {define name=pagedupes value=false}
|
{* Load 50 galleries *}
{galleries
var=$galleries
preview=true
type=any
category=MIXED
amount=50
getnew=true
allowused=true
order=date_approved
reorder=date_displayed DESC, date_approved}
{* Display loaded galleries as text links *}
{foreach from=$galleries var=$gallery counter=$counter}
{$gallery.date|tdate} {$gallery.thumbnails|htmlspecialchars} {$gallery.category|htmlspecialchars} {/foreach} |