I just installed Lightbox2 in an attempt to display some event images on my site. Despite all the documentation and tutorials I looked at, I want to launch lightbox by having the user click on a link (such as 'click here to view ourphoto gallery') and NOT by clicking a thumbnail. In fact, I don't want any images showing at all, just the link, and the images only showing in the Lightbox.

I followed some instructions and did the following:

<a href="/photoname1.jpg" rel="lightbox[Groupname]">View this photo gallery</a>
and so on, using the class="lightbox_hide_image" for all subsequent images. Works great, EXCEPT in the panel that contains that content, there is a huge space after my 'view this photo gallery' link, I assume it is from the 'hidden' images.

Does anyone know how I can get rid of that space? Or know where I can find a proper tutorial for adding images to Lightbox without thumbnails? I don't really care about the automatic image detection, I don't have most of the modules it uses, like image or inline, and I don't understand how to use views to set up content for Lightbox. I do have CCK and created a page type for imagefields (displayed with Lightbox), which I added photos to, but when linking to that page, Lightbox loads but the photo is not properly sized, and there is no link to the next photo.

Anyone have sympathy for a Drupal newbie and can shed some light on my Lightbox?

Thanks.

Comments

pravena’s picture

<a href='/sites/default/images/img1.jpg' rel='lightframe' title='my caption'>View this photo gallery</a>;

pravena’s picture

Issue summary: View changes

forgot to add code tags