Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Paul Brown 39 posts 80 karma points
    Jul 09, 2013 @ 14:48
    Paul Brown
    0

    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

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jul 09, 2013 @ 14:57
    Jeroen Breuer
    0

    It might be better to use DAMP as your media picker. It also has a lot of examples.

    Jeroen

  • Jeavon Leopold 3072 posts 13628 karma points MVP 10x admin c-trib
    Jul 09, 2013 @ 16:24
    Jeavon Leopold
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft