Lately, i have been tossing around the idea of building a module that read photos out of a specified directory on the file system based on a given path. I really spent alot of time uploading images one at a time or even 8 at a time with the new versions of insite. There is nothing wrong with it if you want versioned files.
Well, last night i spent some time whipping out a module that takes the following parameters:
-
Virtual Directory Path
-
Thumbnail Size
-
Enlarged Size (when you click the image, the size that comes up)
-
Css of the item container. (since it is a asp.net datalist, it is a table cell)
-
Number of items per Row
-
Page Size (number of items per page: FOR PAGING)
What this entails is, you enter the vitual directory of the folder the images are located in. This will automatically populate the control with the thumbnails of the images inside the folder. This will calculate behind the scenes the images in the directory and handle all the paging for you based on your input.
Pros to using this module:
The images in the directory are not versioned. Also, you can drop an image in the directory via the ftp or windows explorer and they will just appear with all the proper paging.
Cons to using this module:
As of right now are that the images are not cached. This means that it will take some time to load images that are quite large. Also, it uses LINQ which means that you must be running .NET 3.0 or .NET 3.5.
Feel free to email me with any questions you might have. Thanks.
Screenshot:
