SuperSizer in Fancybox template (Gallery)
Posted: Wed Apr 28, 2010 12:10 pm
On my page (built with cmsms 1.6.6) I'm using Gallery 1.2.1 with the Fancybox template. I like it very much!
The only thing is I think the thumbnails used from the Image Manager are very small. When I set the size of the thumbnails they all get the same ratio and I want my thumbnails to have the same ratio as my images (3:4 or 4:3).
So I installed the supersizer tag.
I found this in the fancybox template:
and replaced it with
But it does not work!
Does anyone know why??
The only thing is I think the thumbnails used from the Image Manager are very small. When I set the size of the thumbnails they all get the same ratio and I want my thumbnails to have the same ratio as my images (3:4 or 4:3).
So I installed the supersizer tag.
I found this in the fancybox template:
Code: Select all
{foreach from=$images item=image}
<div class="img">
{if $image->isdir}
<a href="{$image->file}" title="{$image->title}"><img src="{$image->thumb}" alt="{$image->title}" /></a><br />
{$image->title}
{else}
<a class="group" href="{$image->file}" title="{$image->title}" rel="gallery"><img src="{$image->thumb}" alt="{$image->title}" /></a>
{/if}
</div>
{/foreach}
Code: Select all
{foreach from=$images item=image}
<div class="img">
{if $image->isdir}
<a href="{$image->file}" title="{$image->title}"><img src="{supersizer path=$image->file percentage='20'}" alt="{$image->title}" /></a><br />
{$image->title}
{else}
<a class="group" href="{$image->file}" title="{$image->title}" rel="gallery"><img src="{supersizer path=$image->file percentage='20'}" alt="{$image->title}" /></a>
{/if}
</div>
{/foreach}
Does anyone know why??