I have a gallery, created as a view:


Now the titles are links to the pages. And images have lightbox effect.

enter image description here

I want the links to activate lightbox of the appropriate image. But there are no settings for that in the admin panel.

Here are the settings for the image field:

enter image description here

Settings for the header field in the control panel:

enter image description here

How can I set the link to act as lightbox?

Here is the image content type structure:

enter image description here


In Views Use this code in "Rewrite the output of this field"

<a href="imagepath token" rel="lightbox">[title]</a>

You can also set the width and height of the popup window, see the read-me file in Lightbox2 module folder.

hope you will get idea from the above!!

  • I almost got it, but where should I get the image path token? image-path and path didn't work. – user4035 May 13 '13 at 19:07
  • I updated my question, so you could see the content type fields, I am using. – user4035 May 13 '13 at 19:10
  • I'm not sure, try this href="[field_gallery_fid]", Let me know – Bala May 13 '13 at 19:23
  • no, didn't work – user4035 May 13 '13 at 19:26
  • Is there a place where I can at least look for this token? – user4035 May 13 '13 at 20:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.