1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lightbox with Description

Discussion in 'XenForo Development Discussions' started by Bugfix, Apr 22, 2014.

  1. Bugfix

    Bugfix Member

    Hello!
    I can't find a thread for this - so I wanted to ask:
    Is there a way to insert an images description in the automatic "misc/lightbox" script?
    my code:
    HTML:
    <div data-author="Images in Abum:">
       <div style="display: none;">
         <xen:avatar user="$album" size="s" />
       </div>
    <xen:foreach loop="$images" value="$image">
      <a href="{xen:link albums/standalone, $image, 'embedded=1'}" target="_blank" class="LbTrigger" data-href="misc/lightbox">
               <img src="{$image.thumbnailUrl}" alt="{$image.description}" title="{$image.description}" class="LbImage" />
             </a>
    </xen:foreach>
    </div>
    
    Everything works fine, but the {$image.description} isn't shown in the lightbox popup.
    Would be great!

    Thanks, Harald
     
    iraqiboy90 likes this.

Share This Page