Modx Revolution Gallery Snippit ==================== Author: J. Mercer Date: May 12 2011 Updated:May 31 2011 ==================== Description myGallery is a simple Gallery snippit that reads a directory and creates a page or pages of images found. It has pagination through use of a pagination class file and each image is placed within divs to make formatting via CSS easy. Usage Place the following snippit call into the page where you would like to see the images. [[!myGallery? &mgStrDir=`directory/to/full_size/images` // where the full size images are kept. Defaults to assets/components/mygallery/photos &mgStrThumb=`directory/to/low_resolution/images` // where the thumbnails are kept. Defaults to assets/components/mygallery/photos/.thumbs &mgIntPerPage=`6` // Number of images per page. Defaults to 6 &mgIntWidth=`250` // width of thumbnails. Defaults to 250 &mgIntHeight=`182` // height of thumbnails. Defaults to 182 &mgBolShowName=`true` // Show file name. Defaults to false &mgBolShowModel=`true` // show exif camera model. Defaults to false &mgBolShowDate=`true` // show exif date taken. Defaults to false ]] All vars are optional Release Notes This is almost a complete rewrite. I changed from using open directory to glob and added template chunks to remove the HTML from the snippet. This is my first attempt at adding a package for Modx and I would be grateful for any and all suggestions for improvements. I was disappointed with the Gallery packages out there as I wanted to be able to simply add images and thumbnails to a directory via FTP and have them show up.