Author: Tales from the Evil Empire : ASP.NET | Posted on: 1/18/2011 2:45:27 AM | Views : 873

I built a little module for Orchard tonight and it involves a couple of interesting magic tricks so I thought I'd share. The module is replacing the default Orchard favicon with whatever you configure in site settings: I haven't created any specific storage for the icons and instead decided to use a simple convention for the already existing Media module. What you can see in the site settings in the picture above is a list of suggestions that is just a list of the icons that are found in the favicon subfolder of the Media module. In order to do that, I added a reference to Orchard.Media in my module's csproj and the corresponding dependency in the module's manifest. That done, I can get a dependency on IMediaService injected...(read more) ...

Go to the complete details ...