We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7527
    • 437 Posts
    Hi, I am looking to create a gallery that pulls images in from one source. I looked at 'randImages' as it seems simple and does what I need (pull images from one folder). But I can't find any info regarding placeholders to style my tpl chunk? Does anyone have any experience with this snippet please?
      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      If it's this one http://modx.com/extras/package/randimages the image has the placeholders.
        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
        • 7527
        • 437 Posts
        Hi Sottwell. Thank you I have since managed to run a random gallery using the gallery snippet
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk
          • 42562
          • 1,145 Posts
          TinymceWrapper >> TinyJSONGallery
          MIGX getImageList
          [[!getImageList? 
          &offset=`1`
          &limit=`1` //if you want only one image
          &randomize=`1`
          &value=`[[$Nature_myGallery]]` //&tvname=`TinyJSONGalleryTV`
          &tpl=`NatureAlbum_rowTpl`
          &imgCls=`pic`
          &rowCls=`magic`
          &linkCls=`linked`]]


          Each chunk or TV value is an album.
          Each album is directly attached to your folder of choice.
          You can query each album in multiple ways at once - and use different TPLs for each [ed. note: donshakespeare last edited this post 10 years, 6 months ago.]
            TinymceWrapper: Complete back/frontend content solution.
            Harden your MODX site by passwording your three main folders: core, manager, connectors and renaming your assets (thank me later!)
            5 ways to sniff / hack your own sites; even with renamed/hidden folders, burst them all up, to see how secure you are not.