We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 47742
    • 13 Posts
    What is the best gallery extra to use for a photographer's website? He needs multiple file upload, watermarking images, sorting by tags/categories, etc. I read about MaxiGallery and it sounds great, but there is no download or real documentation.

    This question has been answered by sottwell. See the first response.

      • 42046
      • 436 Posts
      MoreGallery https://www.modmore.com/extras/moregallery/

      Use pThumb for watermarking.
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        Gallery is good, as is rolling your own using MIGX and MIGXdb - I'm particularly fond of this one. I haven't had the opportunity yet of using MoreGallery, but I have found ModMore's other offerings to be very impressive, so I rather imagine MoreGallery would be the same.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 47742
          • 13 Posts
          So - I'm working with Gallery (it's free!). I want to feed a slideshow with the actual photos, not thumbnails. When I use the following, it generates a list of thumbnails.
          [[!Gallery? &sort=`rand]]

          How do I set up a template that pulls the actual filenames so I can fee a jquery slideshow?
          • discuss.answer
            • 28042 ☆ A M B ☆
            • 24,524 Posts
            Gallery does that. It has a number of snippets, and they each have chunk tpls to control their output. You can modify the Gallery snippet's thumbTpl to output the main image using a different placeholder. I often use a completely different thumbTpl to generate the HTML that a chosen slideshow expects, in fact Gallery comes with Galleriffic.
            <div class="[[+cls]]">
                <a href="[[+linkToImage:if=`[[+linkToImage]]`:is=`1`:then=`[[+image_absolute]]`:else=`[[~[[*id]]?
                        &[[+imageGetParam]]=`[[+id]]`
                        &[[+albumRequestVar]]=`[[+album]]`
                        &[[+tagRequestVar]]=`[[+tag]]` ]]`]]">
                    <img class="[[+imgCls]]" src="[[+image_absolute]]" alt="[[+name]]" />
                </a>
            </div>
            

            You can also use pthumb (another extra, a drop-in reworking of phpthumbof) to resize the full images:
            [[+image_absolute:pthumb=`w=300&h=300&zc=1`]]


            http://rtfm.modx.com/extras/revo/gallery
            http://rtfm.modx.com/extras/revo/phpthumbof
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org
              • 47742
              • 13 Posts
              That is awesome! Thank you. One more question... is there a parameter for pthumb that overlays the image with a watermark?
                • 42046
                • 436 Posts
                Have a look at http://phpthumb.sourceforge.net/demo/demo/phpThumb.demo.demo.php, there's several watermark examples there that are compatible with pThumb.