This project is read-only.

Creating new Module/Widget - Where do images live?

Topics: Customizing Orchard, Troubleshooting
Feb 24, 2011 at 6:39 PM

I have created a new widget and everything works except the images I reference in my CSS do not resolve (404). The path is OrchardLocal/Modules/{ModuleName}/images/image.png

Any ideas on what I am doing incorrectly? All the JavaScript and CSS files resolve at the respective paths, just having a problem with images.


Feb 24, 2011 at 6:49 PM
Edited Feb 24, 2011 at 6:50 PM

Simple mistake, there was no web.config in the images folder.

Feb 24, 2011 at 7:14 PM

new problem, now when I build the package the web.config gets removed from the Images folder. Am I supposed to use a folder named Media or Content to store images?

Feb 24, 2011 at 7:18 PM

Just a guess, do you have the Copy To Output Directory on that Web.Config set properly?
Build Action should be Content


Mar 11, 2011 at 6:04 PM

Well, what I do, is any images used on the site other than the theme, I upload into media folder then use the offered url in my html... works like a charm... Doing this also makes the image availalbe from the WYSIWYG.


TJ Havens