File Download Snippet
I needed an easy way to display files from a folder for downloading. So I created this snippet for Modx. By passing in a folder it outputs the filename, date, size, link, filetype image, description, and the download count.
07-17-06 Fixed code that determines which file type image to use with each file.
04-30-06 The files have been updated to allow for directory browsing. This allows the user to go into subfolders of the folder specified in the snippet call. I have also cleaned up some of the code.
03-22-06 I have added the ability for single file listing. The updated files can be downloaded here. There is a new parameter for this - &getFile=``
03-18-06 There was an error in the file download.php, it was causing the downloads to fail. It should work correctly now and can be downloaded on the right.
For more information on FileDownload including parameters, examples, and change log information go here:
FileDownload Snippet Development Area
20
19
Keep on going and the chances are you will stumble on something, perhaps when you are least expecting it. I have never heard of anyone stumbling on something sitting down.
18
There is still a difference between something and nothing, but it is purely geometrical and there is nothing behind the geometry.
17
I hope that when I die, people say about me, 'Boy, that guy sure owed me a lot of money.'
16
It is impossible to walk rapidly and be unhappy.
15
What can you say about a society that says that God is dead and Elvis is alive?
14
We owe something to extravagance, for thrift and adventure seldom go hand in hand.
13
He will always be a slave who does not know how to live upon a little.
12
Eat a third and drink a third and leave the remaining third of your stomach empty. Then, when you get angry, there will be sufficient room for your rage.
11
Assuming either the Left Wing or the Right Wing gained control of the country, it would probably fly around in circles.




MuddyDogPaws Feed
LinkedIn Profile
Flickr Photos
Silent gratitude isn't much use to anyone.