The Lightbox does not work with K2 article

Create fresh and professional look of personal or blog websites with AppsPro Tech
GK User
Mon May 21, 2012 5:58 pm
Hi guys. Do you know, why joomla lightbox doesn´t work in my K2 articles? Thx in advance.
User avatar
Fresh Boarder

GK User
Tue May 22, 2012 11:41 am
Hi,

Can you please clarify the problem and give me link to see it?

Thanks,
User avatar
Platinum Boarder

GK User
Wed May 23, 2012 3:39 pm
Yes, sure. Problem is, that I set up "lightbox" for picture link (Relationship Page to Target), but it just open simple window with picture. You can see it for example here: http://www.webnakluc.sk/blog/item/121-gmail-tuning
User avatar
Fresh Boarder

GK User
Wed May 23, 2012 4:21 pm
I see the problem now, can you provide me with backend and FTP access for further check and fix?

Thanks,
User avatar
Platinum Boarder

GK User
Fri May 25, 2012 12:50 am
Please check that page, click on the second image to see the modal box displaying now :) In order to make a link open in an modal box you need to set its class as "modal" and rel value as "{handler: 'image'}" like below:
Code: Select all
<a title="Click to preview image" href="/_updates/joomla25/appsprotech/media/k2/items/cache/1698b847c2e4fe98c05adcdc9d420590_XL.jpg" rel="{handler: 'image'}" class="itemImage modal">
                  <img style="width:600px; height:auto;" alt="iTech Business Reader application" src="/_updates/joomla25/appsprotech/media/k2/items/cache/1698b847c2e4fe98c05adcdc9d420590_L.jpg">
                  </a>

http://easycaptures.com/fs/uploaded/545/5733014052.jpg

Please apply to other images to see.

Cheers,
User avatar
Platinum Boarder


cron