Lightbox- first thumb larger

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
stahu13
Forum Members
Forum Members
Posts: 22
Joined: Fri Nov 21, 2008 7:46 pm

Lightbox- first thumb larger

Post by stahu13 »

Hello,
I am trying to change Lightbox template to do something like that: first thumb should be on center and much more larger that other. Have you got any idea how to do that?? I am using this template:


{if !empty($module_message)}{$module_message|escape}{/if}
{if !empty($gallerytitle)}{$gallerytitle}{/if}
{if !empty($gallerycomment)}{$gallerycomment}{/if}
{$imagecount}

{if $pages > 1}
{$prevpage}
{$nextpage}
{/if}
{if !$hideparentlink && !empty($parentlink)}{$parentlink}{/if}
{if $pages > 1}{$pagelinks}{/if}


{foreach from=$images item=image}

{if $image->isdir}
file}" title="{$image->title}">thumb}" alt="{$image->title}" />

{$image->title}
{else}
  file}" title="{$image->title}" rel="lightbox[gallery]">thumb}" alt="{$image->title}" />
{/if}

{/foreach}
 
davids355
Power Poster
Power Poster
Posts: 279
Joined: Fri Apr 04, 2008 10:08 am

Re: Lightbox- first thumb larger

Post by davids355 »

Take a look at the other default templates, I'm sure there is code in one of them that singles out the first image...??
stahu13
Forum Members
Forum Members
Posts: 22
Joined: Fri Nov 21, 2008 7:46 pm

Re: Lightbox- first thumb larger

Post by stahu13 »

thanks for reply

unfortunately any of default templates havent got this option
I have got these templates:
AE-Gallery 
Colorbox
Fancybox
Lightbox
Lytebox
Slimbox
Thickbox

maybe you know any others good templates, maybe with option which I need??
many thanks
stahu13
Forum Members
Forum Members
Posts: 22
Joined: Fri Nov 21, 2008 7:46 pm

Re: Lightbox- first thumb larger

Post by stahu13 »

hm AE-Gallery  has got this option but it doesnt work as a Lightbox...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Lightbox- first thumb larger

Post by Dr.CSS »

You could use jQuery to target the first image then do some css to make it larger...
Post Reply

Return to “The Lounge”