<div>
@{
var typedMediaPickerSingle = Model.Value<IPublishedContent>("advert1");
if (typedMediaPickerSingle != null)
{
<img src="@typedMediaPickerSingle.Url" />
}
}
</div>
The syntax for writing out properties in this fashion has changed subtely in V8, GetPropertyValue has become just Value, and Model.Content has been replaced by just Model.
v7 code not working in v8 for media picker
In v7 i used this code so that the image chosen from media picker would show
However it doesn't work in v8. Thoughts?
Hi Jason
Does...
The syntax for writing out properties in this fashion has changed subtely in V8, GetPropertyValue has become just Value, and Model.Content has been replaced by just Model.
regards
marc
is working on a reply...