We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36830
    • 140 Posts
    Is there a gallery extra for the newest ModX Revo that has the built-in ability to allow a user to choose a gallery theme (e.g.: choose between Carousel and Thumbnail Carousel for a given resource) ? If not how could I implement this function and with which extra (one that is naturally customizable in service of this function). Thanks so much for any insight.
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      The Gallery extra has at least one optional built-in carousel.
      http://rtfm.modx.com/extras/revo/gallery/gallery.plugins/gallery.plugins.galleriffic

      However, it's very easy to use any of the hundreds of Javascript galleries out there. All you have to do is adjust the gallery's output chunk tpl to generate the HTML for each item that the Javascript you choose expects.

      For example, this site in development uses the very simple Cycle2 slideshow JQuery plugin.

      This is the display snippet's output chunk tpl:
      <img src="[[+image:pthumb=`w=1000&h=312&zc=T`]]" data-cycle-desc="[[+title_[[++cultureKey]]]]" alt="">
      
      [ed. note: sottwell last edited this post 12 years, 1 month ago.]
        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
        • 36830
        • 140 Posts
        Ah. So I'll go with Gallery. I was trying to decide between that and Cliché. So just to clarify: in attempting to set up a gallery with a TV switch that allows the user to choose between having either a plain carousel or thumbnail carousel (same jq slider: "Slick") for any given resource, adjusting the output chunk of Gallery will help me facilitate this? Thanks for your help.
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          I have no idea. I've never used the Gallerific plugin, I don't particularly like Gallerific. Actually, I seldom use the Gallery extra at all, I prefer a MIGx gallery since it's much easier to adapt for multiple languages.
            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
            • 42046
            • 436 Posts
            It's not free (but cheap 25 euros), MoreGallery is hands down the best Revo gallery extra:
            https://www.modmore.com/extras/moregallery/

            The docs come with code examples for many different types of galleries:
            http://demo.modmore.com/moregallery/
              • 36830
              • 140 Posts
              Sweet. I'll look into. Thanks.