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

    I would like to automatically at a thumbnail to the bottom of the page on my site for each time I add a portfolio website.
    www.adaptwebdesign.com

    See the bottom of my page, at present i am using a chunkk and manually adding the images. Ideally I want to automate this.

    Any advice would be great.

    Thanks

    Phil
      Get your business online - Adapt Web Design www.Adaptwebdesign.com
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Use a snippet to grab the images in a given directory and generate the list; you can have it generate any listing needed for any javascript gallery you might want to use. There are a number of PHP functions that return a listing of files in a given directory in different formats; I’ve probably used them all at one time or another and they all do the job.

      Or you can use a TV with @DIRECTORY binding and an Image output widget.
        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