This project is read-only.

Image field property in projections layout

Topics: Customizing Orchard
Jan 28, 2013 at 2:39 PM
Edited Jan 28, 2013 at 2:41 PM

I'm trying to create a projections layout, displaying the image associated with the content item's image field. I managed to add the image property to the projection layout, though only the path to the image gets displayed. So I tried to edit the Rewrite Results section by adding this into Rewrite text: 

<img src="{Text}" alt="" />

which generated following html:

<img src="~/Media/Default/Product/image.jpg" alt="" />

Is there a way to directly output the image without rewrite or to output the value without ~ in the path?