MediaPicker image of Orchard CMS using a projector

I have a content type with a MediaPicker field. MediaPicker allows the contributor to select an image for the content type. I use Projector to design a page that displays a list of this type of content, but the image does not display. I changed the "Rewrite Results" in the layouts of the projector to write the field to the image:<img src="{Text}"/>

But this gives: <img src="~/Media/.../picture.jpg"/>and does not convert the tilde ~ / to the correct path.

Can you tell me what I am doing wrong? What is the best way to render an image using the Projector module?

Thank!

+3
source share
1 answer

All Articles