Suggestions for Lightbox view
Suggestions
Like Michael said, you can open any image in lightbox if you add "data-lightbox" attribute to the link. It is very easy to use. But my personal point of view lightbox2 is a little bit limited functionally. I sick and tired to find ways around to do what i wanted to do with lightbox. So i change it with fancybox. Now i can make it display almost everything in a lightbox with fancybox. I used lightbox to show images with many additional data like title, links, tags... But recently i needed to show an iframe in a lightbox for spherical panoramas. There is no way to display iframe in lightbox at least i couldn't find. Now i am very happy with fancybox. But if you want to display only images in lightbox all you need to do is change the image source code to a link code and add the "data-lightbox" attribute. And you can pass things to lightbox with "data-title" attribute. For example i used data-title to give link to profiles; you can go to a person's profile by clicking a link under that person's photo. You can find more information about lightbox on the web
updated by @melih: 08/15/16 02:50:23PM