Page 1 of 1
Gallery simple scroll template
Posted: Wed Jun 15, 2011 5:35 pm
by Sepp
Ehm. This might be a stupid question.
Is there a Gallery template wich places the image one after the other onto the page, so you can easily scroll down all the images on the page. No js no lightbox no nothing??
I could also paste the images into a new site, but I like the Gallery Interface.
Re: Gallery simple scroll template
Posted: Wed Jun 15, 2011 6:24 pm
by Jos
Your template code could look like this:
Code: Select all
<div class="gallery">
{if !empty($gallerytitle)}<h3>{$gallerytitle}</h3>{/if}
{if !empty($gallerycomment)}<div class="gallerycomment">{$gallerycomment}</div>{/if}
<p>{$imagecount}</p>
{if !$hideparentlink && !empty($parentlink)}<div class="parentlink">{$parentlink}</div>{/if}
{foreach from=$images item=image}
{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}
<img src="{$image->file|escape:'url'|replace:'%2F':'/'}" alt="{$image->titlename}" title="{$image->titlename}" />
{/if}
{/foreach}
</div>
The other fields can be left empty.
Re: Gallery simple scroll template
Posted: Thu Jun 16, 2011 5:03 pm
by Sepp
Thank you very much. That's great.