I have a gallery on my site which uses an image template variable called ’zThumb’ to display a thumbnail for each document in the gallery. (You can see work in progress here:
http://hybridfilms.tv/v2/index.php?id=82)
We would like the thumbnail to change on every refresh of the page. In other words, every time a visitor comes to the page, they get a random thumbnail. We’ll upload, say, 4 images for each thumbnail, and a different one should be displayed each time the page is generated.
I am using Ditto to create a gallery with this call:
[tt][[Ditto?&tpl=`listChildrenTpl` &sortBy=`menuindex` &sortDir=`ASC` &depth=`1` &display=`all` &filter=`hidemenu,0`]][/tt]
This is listChildrenTpl:
[tt]<div class="ditto_item" id="ditto_item_[+id+]">
<div class="ditto_thumb"><a href="[~[+id+]~]">[+
zThumb+]</a></div>
<div class="ditto_pageTitle"><a href="[~[+id+]~]">[+pagetitle+]</a></div>
<div class="ditto_introText">[+introtext+]</div>
</div>[/tt]
Anyone have an idea how to do this?
Thanks!