About getImages
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 always I would be grateful for any and all suggestions for improvements.
Information
Released
November 5, 2016
Supported Database
MySQL
License
GPLv2
Supported Versions
2.0 - Current
Downloads
7,780
Instructions
The getImages snippet will work as a stand alone but with the help of 3 other snippets (getFolders, getPage, and pThumb) it becomes a full fledged Gallery package. Simply upload your images using FTP to a file structure that represents the Gallery pages you would like. Use getFolders to scan the folder structure and turn it into a menu with a link to getImages to create your gallery page or if you would like you can wrap getImages in the getPage snippet to add pagination. pThumb comes in handy for creating thumbnail images on the fly. (thanks jgrant) The included template chunks can be used to create an almost unlimited display style
New in 2.4.2-pl
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.