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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -