This project is read-only.

ASP in Html widget

Topics: Customizing Orchard, General, Writing themes
May 6, 2011 at 5:29 PM

Is it possible to include an ASP chunk of code in a html widget anyhow? I have been trying some options but none worked yet. Im trying to include images relative to the app root. 

I would need to render either one of these

@Html.Image("~/Themes/Theme/Content/Images/banner.jpg""Test"new { })

 <img src='~/Themes/Theme/Content/Images/banner.jpg' alt='Test' />

May 6, 2011 at 5:42 PM

There was a Razor module posted recently that I think lets you do exactly that: