We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 16610
    • 634 Posts
    I seached solutions for adopting Thickbox (jQuery) with MaxiGallery. I found some answers from the forum posts that it should be quite easy to implement but none of the posts offered real solutions how to do it exactly.

    So, my question is: Has someone a working example how they have implemented Thickbox with MaxiGallery?
      Mikko Lammi, Owner at Maagit
      • 7923
      • 4,213 Posts
      Do a custom galleryPictureTpl and put this in it:

      <li>
      <a href="[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]" class="thickbox">
      
      <img src="[(base_url)][+maxigallery.path_to_gal+]tn_[+maxigallery.picture.filename+]" class="thumbnail" title="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" alt="[+maxigallery.picture.title:htmlent+] [+maxigallery.strings.click_to_zoom+]" />
      	
      	</a>
      	[+maxigallery.picture.title:isnot=``:then=`
      		<p style="width: [+maxigallery.picture_width_thumb+]px;">
      		[+maxigallery.picture.title:htmlent+]
      		</p>
      	`+]
      </li>
      


      Add thickbox js to the <head> of your site template and call maxigallery with that custom galleryPictureTpl. That should be it.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 16610
        • 634 Posts
        Thanks Doze, will try it tomorrow at work smiley
          Mikko Lammi, Owner at Maagit
          • 16610
          • 634 Posts
          Once again MODx and MaxiGallery have done it in the right way smiley

          This was even easier than I though it would be. Works great! And the time needed for this customization... couple minutes maybe. I’ll add this tip to Wiki for future reference.
            Mikko Lammi, Owner at Maagit
            • 7923
            • 4,213 Posts
            Quote from: Lammikko at Oct 06, 2008, 06:16 AM

            I’ll add this tip to Wiki for future reference.
            Great job, and thank you specially for updating the wiki.. It helps me with the support work immensely when I can just refer to the wiki for the things that are asked all the time.. I just hope that more people would do the same thing, so I wouldn’t need to write same things every time (and maybe I could also find time to do something new to MaxiGallery when I wouldn’t have to reply here all the time) wink Just as a hint to all...


              "He can have a lollipop any time he wants to. That's what it means to be a programmer."
              • 16610
              • 634 Posts
              After a little delay I added this tip to the MaxiGallery Wiki article Tips & Tricks section: http://wiki.modxcms.com/index.php/MaxiGallery#ThickBox_.28jQuery.29_with_MaxiGallery
                Mikko Lammi, Owner at Maagit