We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12410
    • 353 Posts
    Hi Guys,
    Using the "Gallery Module" at http://rtfm.modx.com/display/ADDON/Gallery
    and am opening the images in a lightbox using:
    <div class="[[+cls]]">
        <a href="[[+image]]" rel="example3" title="[[+description]]">
    
            <img class="[[+imgCls]]" src="[[+thumbnail]]" alt="[[+name]]"  />
        </a>
    </div>


    in the galItemThumb chunk. All works fine but I dont know how to change the default image width from 500*500. I tried changing them in the Gallery and GalleryItem snippets (cleared cp and browser cache) but the image in the light box keeps comming up with a 500px true width.

    Any ideas please on how to adjust the chunk code above?

    THANKS
      • 31378
      • 51 Posts
      Hey!
      Just write new parameters to your snippet:
      &imageWidth=`900` &imageHeight=`900`

      Example:
      [[!Gallery? &album=`1` &thumbTpl=`your_data` &imageWidth=`900` &imageHeight=`900`]]

      That’s all.
      Good Luck! )
        • 12410
        • 353 Posts
        Thanks!