Gallery simple scroll template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Sepp
Forum Members
Forum Members
Posts: 38
Joined: Thu Jan 28, 2010 2:43 pm

Gallery simple scroll template

Post 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.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: Gallery simple scroll template

Post 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.
Sepp
Forum Members
Forum Members
Posts: 38
Joined: Thu Jan 28, 2010 2:43 pm

Re: Gallery simple scroll template

Post by Sepp »

Thank you very much. That's great.
Post Reply

Return to “Modules/Add-Ons”