Page 1 of 1

Gallery Module 1.6.1

Posted: Tue Jul 30, 2013 1:04 pm
by newrecruit02
Is there anyway to program this if statement to just use 1 icon image vs the entire library? default code below...



<div class="gallery">
<div class="pagenavigation">
{if $pages > 1}
<div class="prevpage">{$prevpage}</div>
<div class="nextpage">{$nextpage}</div>
{/if}
{if !$hideparentlink && !empty($parentlink)}<div class="parentlink">{$parentlink}</div>{/if}
{if $pages > 1}<div class="pagelinks">{$pagelinks}</div>{/if}
</div>

{foreach from=$images item=image}
<div class="img">
{if $image->isdir}
<a href="{$image->file}" title="{$image->titlename}"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a><br />
{$image->titlename}
{else}
<a class="group" href="{$image->file|escape:'url'|replace:'%2F':'/'}" title="{$image->comment}" rel="prettyPhoto[{$galleryid}]"><img src="{$image->thumb|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" /></a>
{/if}
</div>
{/foreach}
<div class="galleryclear">&nbsp;</div>
</div>

Re: Gallery Module 1.6.1

Posted: Tue Jul 30, 2013 7:05 pm
by velden
Probably there is, but I'm not sure what you want exactly.

Re: Gallery Module 1.6.1

Posted: Wed Jul 31, 2013 8:28 am
by Jos
On http://wiki.cmsms.nl/index.php/Gallery# ... _Questions I read: "How to have one thumbnail and the rest hidden".. Is that what you mean?