Hi. I am using Umbraco 7 and I want to get the content from a Media Picker field in a razor view.
I have only one field so I don't need an array. I have the "official" umbraco example for getting the value of the Media Picker in strongly typed razor:
@if (Model.Content.HasValue("caseStudyImages")) {
var caseStudyImagesList = Model.Content.GetPropertyValue
Getting content from Media Picker strongly typed
Hi. I am using Umbraco 7 and I want to get the content from a Media Picker field in a razor view.
I have only one field so I don't need an array. I have the "official" umbraco example for getting the value of the Media Picker in strongly typed razor:
I want to get the content but without an array since I have only one value. Does anyone know how to do this?
//Lars
Hi Lars,
Something like this
Jeavon
Hi Jeavon
Thank you for a quick and even right answer and have a nice day. It *&ยค%&#/" works :-)
is working on a reply...