If you are using webforms then you can either create a Razor macro (samples here) or you can use the umbraco:image tag. If you are using Mvc rather than webforms then you can use a sligthly different bit of Razor (samples also here)
Also, highly recommend you checkout the DAMP package as Jeroen mentioned above for use with both Webforms and Mvc.
Display Media Picker Image In Template
Now this seems rather easy to do at first but after two hours of googling etc I am still stuck!
I have created a DocType & associated emplate to display client case studies. I have added a Media Picker element (clientLogo) to the DocType.
Now what is the best way to get this to render in the template?
Firstly, can I do it directly in the template file or do I have to created a new Razor macro and then reference that?
Any help apreciated.
Running v6 :)
Thanks Paul
It might be better to use DAMP as your media picker. It also has a lot of examples.
Jeroen
If you are using webforms then you can either create a Razor macro (samples here) or you can use the umbraco:image tag. If you are using Mvc rather than webforms then you can use a sligthly different bit of Razor (samples also here)
Also, highly recommend you checkout the DAMP package as Jeroen mentioned above for use with both Webforms and Mvc.
is working on a reply...