Jun 24, 2011 at 11:04 PM
Edited Jun 24, 2011 at 11:12 PM
Just submitted my first module to the gallery!
Allows mapping of virtual paths to physical paths for media files for semantic URL's and SEO purposes. Existing and new media files that are added to content items after the install of this module should automagically reference the new virtual location.
Existing URL's for content parts like ImageGalleries and Body areas should also automatically adjust.
For instance you can now have a ~/Images/ Folder map to ~/Media/Default/MyImages/, or ~/Pics/ to ~/Default/Media/ImageGalleries/MyPics/ . You can set any number of virtual path maps as you'd like.
Does not require Full Trust (You may have to specify additional MIME Types as necessary in the MimeTypes.txt file if you are not running Full Trust).
Special thanks to Pete Hurst for his assistance :)
One thing to note: There's a hack in place as I couldnt find a reliable way around what I wanted to do without it. It uses a text file for data persistence right now (it's updated automatically when saving the media settings) for matching routes in the IRouteConstraint
If someone wants to take a look at see if they can figure out how to resolve the transaction scope errors and crashes that would be awesome. (the code is commented out in the Helper class)