MediaPicker field prints only Id instead of image

Topics: General
Sep 10, 2015 at 6:02 PM
Hi there,

I created a content type and it has a mediapickerfield in it. To list the items of the content type I created a Projection and Query with a layout. Basicly I want to show the title, summary text and image with a details link.

When I get the listing instead of the image it prints smth like {133}. so I went to edit layout (Raw), edit the property related to media picker, Selected Rewrite output entered <img src="{Text}"/>. This time it just prints <img src="{133}" />.

How can I make the layout print the image itself? or rewrite the out put and print the url inside src=""?
Sep 10, 2015 at 8:44 PM
Found the answer.

<img src="{Content.Fields.CONTENTTYPE.FIELDNAME.Url}"/> solves the issue.
Marked as answer by deniztorlak on 9/10/2015 at 1:44 PM