We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37210
    • 131 Posts
    Has anyone managed to integrate Lightbox2 into the Gallery snippet?

    I have followed the tutorial at:
    http://www.lokeshdhakar.com/projects/lightbox2/

    I have implemented everything as outlined but when I click the image, it still just directs me to a larger version.

    Here’s my snippet call..nothing special:
    [[!Gallery? &album=`[[*pagetitle]]` &thumbTpl=`thumbTpl`]]


    Here’s my thumbTpl with the rel="lightbox":
    <div class="[[+cls]]">
        <a href="[[+image_absolute]]" rel="lightbox">
     
            <img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
        </a>
    </div>



    Thanks in advance
    Sar
      • 37210
      • 131 Posts
      Hey peeps.

      I found the solution to my issue. I had a title tag on one of my CSS links, and this was causing the whole lightbox to break.

      So all I had to do was delete it.
        • 25029
        • 22 Posts
        Hi Sat!

        I am trying to to the same with shadowbox. To have many albums on one resurces with only one thumbnail to trigger the slideshow.

        Do you put the code in a chunk ?
        <div class="[[+cls]]">
            <a href="[[+image_absolute]]" rel="lightbox">
          
                <img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]" />
            </a>
        </div>

        If you have the time please send me all the code and where to put it
        Thank you



        Rickard