Display images with theme

Topics: Writing themes
Jun 3, 2011 at 11:09 AM

My problem is like this  http://stackoverflow.com/questions/5465996/images-not-displaying-from-theme-layout-orchard-cms

I tried the solution of pszmyd but did not work.

Can anybody help?

Jun 3, 2011 at 11:18 AM

You should do it like this:

<img src="@Url.Content("~/Modules/Module.Name/Content/Images/bgBig.jpg")" alt="Big background image" />
And then make sure that your Content directory has a Web.config which allows static files (you can copy this from any other Content directory)