I’m using a specialized template for FileDownload to make up my site’s gallery.
Is there a way to have MODx put images in X folder into a .zip, so people can download them all at one time? Maybe through a snippet or something?
-
☆ A M B ☆
- 24,524 Posts
It would take knowing how to use the zip functions (presuming zip is enabled in your php)
http://www.php.net/zip
I found this zip function code via Google.
http://www.weberdev.com/get_example-4066.html
I looks like it would be pretty easy to snippetize. I don’t know how good it is.
I’d create a snippet but it should probably be done by someone who knows more than I do about zipping and unzipping.
From what I read, a lot of Zip code produces files that are reported invalid by some un-zippers -- notably WinRar and the built-in Windows Vista unzipper.