html - CS1502 error when inserting media url in img source attribute (Umbraco) -


i want display header logo on master template.

so far have code:

<h1 class="brand_name">     <a href="/"><img width="320px"         src='@(model.content.getpropertyvalue<ienumerable<ipublishedcontent>>        ("headerlogo").url)'>     </a> </h1> 

when run page receive error message:

http://i.imgur.com/4ral947.png

i'm not sure causes error, formatting looks fine me. mediapicker property editor header logo defined in language document type, has master template.

you telling getpropertyvalue try return ienumerable of ipublishedcontent, yet try use single .url. have tried model.content.getpropertyvalue ("headerlogo").url instead?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -