We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 17717
    • 433 Posts
    Hi all,

    Just getting started with the very nice looking MaxiGallery and was wondering if it is possible to have the gallery links as text rather than thumbnail images?

    Thanks
    Lee
      http://www.blend.uk.com | Web Design by Blend
      • 7923
      • 4,213 Posts
      You are probably referencing to the childgalleries display mode? if you use 0.5 betas, then yes. Just modify the childgalleries template to show only the pagetitle forexample and not the image from that gallery. If you are not using 0.5 betas, then use Ditto to list the gallery documents.

      If you are not talking about child galleries, please explain more.


        "He can have a lollipop any time he wants to. That's what it means to be a programmer."
        • 17717
        • 433 Posts
        I am using the latest beta. For now, all I need is a links column on the left hand side that click through to the full size image on the right. Also, just wondering how I can disable the scaling down of images on the full size image?

        Thanks
        Lee

          http://www.blend.uk.com | Web Design by Blend
          • 7923
          • 4,213 Posts
          Create a galleryOuterTpl chunk with the name "mgGalleryOuter" that has two divs side by side. The other one has [+maxigallery.pictures+] in it and the other one is empty and has a id "picHolder". Style that picHolder div to be the size of your images. For example:
          [+maxigallery.managebutton+]
          <div style="float:left;">[+maxigallery.pictures+]</div>
          <div id="picHolder" style="float:left;width:500px;height:500px;"></div>
          


          Then do galleryPictureTpl chunk with the name "mgGalleryPicture" and with following content:
          <a href="#" onClick="showPic('[(base_url)][+maxigallery.path_to_gal+][+maxigallery.picture.filename+]');return false;">
          [+maxigallery.picture.title:htmlent+]
          </a>


          Then do a js chunk "mgJs" (or external .js file) with following content:
          <script type="text/javascript">
          function showPic(url) {
          	var picHolder = document.getElementById('picHolder');
          	picHolder.style.backgroundImage="url("+url+")";
          }
          </script>


          Then in your snippet call, use &galleryOuterTpl=`mgGalleryOuter` &galleryPictureTpl=`mgGalleryPicture` &js=`mgJs` parameters. You may need to work on that css some more. If you want to make links to some full size images, then modify that javascript to print some link that links to the full size image.. eg. add one parameter to the showPic function that is [(base_url)][+maxigallery.path_to_gal+]big_[+maxigallery.picture.filename+] and build the link from that.

          To not limit the size of the images, use zero for the max size parameter(s). You can for example have the middle size scaled and have the big one be in original size.


            "He can have a lollipop any time he wants to. That's what it means to be a programmer."
            • 17717
            • 433 Posts
            doze, thank you sooo much for a very concise reply, works great smiley
              http://www.blend.uk.com | Web Design by Blend