getImages Icon


By Jerry Mercer (jerry325)

This Snippet retrieves image files from a directory, processes them through a template chunk and returns the results.

This sprang out of my rewrite of my "myGallery" Snippet. 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. It worked well but as I added more and more directories I found I had to create new pages and I'm far too lazy for that. I wanted to be able to make a page by simply scanning the folder structure that was uploaded via FTP and use the folder names as page names. I used my getFolders Snippet to get the folder structure and my getFoldersList Snippet to create a menu from that folder structure. I then used my getImagesFolder Snippet to pull the needed folder from the URL that the menu passed and then fed the results through Jason Coward's great getPage Snippet and I was in business. It sounds far more complicated than it is and it works like a dream. As of version 2.0 there is no longer a need for the getImagesFolder snippet (don't know what I was thinking with that kludge). As always I would be grateful for any and all suggestions for improvements. Support/Comments should be posted here:

Jerry Mercer

New in getImages 2.4.3

Changelog for getImages (for Revolution).getImages 2.4.2====================================- replaced parseChunk with getChunk to avoid error in logs. (thanks Terry)Changelog for getImages (for Revolution).getImages 2.4.1====================================- fixed issue with documentation not showing.getImages 2.4.0====================================- Added a tag to get the path without the root folder.- Changed some installed example chunks to show usage with pThumbs by jgrant.- packaged pThumb with the package for convenience. - Redid all documentation.- made sure all parts work as described. getImages 2.3.2====================================- Added a random sort tag. (Thanks bendy4)getImages 2.3.1====================================- Added a parent path tag.getImages 2.3.0====================================- Added ability to change sort type (thanks kilroy).- Changed all installed chunks to have example_ prefix so as not to overwrite with updates.- Redid all documentation.- made sure all parts work as described. getImages 2.2.1====================================- Changed method for getting image name so that it works with any extension.getImages 2.2.0====================================- Major re-write removing the need for getImagesFolder.- added new placeholders to allow more versatility.- removed the month re-write function and put it in it's own snippet.- re-wrote the example templates to reflect the new placeholders.getImages 1.1.0====================================- changed the default extension call to use "jpg,gif,png,JPG,GIF,PNG".- fixed a typo in getImage_Tpl that would not allow images to appear.- cleaned up the docs.getImages 1.0.0====================================- changed the extension call to use "jpg" instead of "*.jpg".- added an example CSS file.- cleaned up the docs.getImages 0.9.2====================================- Added ability to use more than one extension.- Removed call to one of my personal folders in default template chunk* much thanks to Terry Barth for helping with the beta.getImages 0.9.1====================================- Added mising Documents Folder.- Added more example files.getImages 0.9.0====================================- A New name.- A complete rewrite to enable the use of getFolders and getPage.myGallery 0.9.0====================================- changed default paths to be under assets.- added docs folder under assets.myGallery 0.8.5====================================- fixed bug in pagination where ... would link to pages that didn't exist.myGallery 0.8.0====================================- Almost a complete rewrite.- Added template chunks.- Changed to Glob for image retrieval.- Added changelog.



November 8, 2016
Supported Versions
2 – Current

Previous Versions

October 20, 2016
2.0 – Current
October 18, 2016
2.0 – Current
August 9, 2015
2.0 – Current
October 9, 2014
2.0 – Current
January 12, 2013
2.0 – 2.3
December 28, 2012
2.0 – 2.2

More from Jerry Mercer


This Snippet creates an array of arrays representing the folder structure…


This Snippet retrieves a selected number of random image files from…


This Snippet displays an image of Stars in relation to the "starRating_Rating"passed…


This Snippet retrieves image files from a directory, processes them…