Copied to clipboard

Flag this post as spam?

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


  • Suman Pradhan 2 posts 22 karma points
    May 01, 2012 @ 03:59
    Suman Pradhan
    0

    Display image using Media Picker data type

    In Umbraco 5, how do we render image using media picker field?

    I have a property "heroImage" of Media Picker type. @Umbraco.Field("heroImage") only gives a long string. How do we get image url?

    Thank you,

    Suman

  • Suman Pradhan 2 posts 22 karma points
    May 02, 2012 @ 00:37
    Suman Pradhan
    0

    Just an update:

    @Umbraco.GetMediaUrl(@DynamicModel.heroImage, "uploadedFile") did work for me.

    Thanks!

  • Pasang Tamang 258 posts 458 karma points
    May 02, 2012 @ 05:29
    Pasang Tamang
    0

    Additionally you can do as mentioned here 

    Thanks
    PTamang

  • Jeroen Breuer 4909 posts 12266 karma points MVP 6x admin c-trib
    May 02, 2012 @ 13:32
    Jeroen Breuer
    0

    There is also official documentation. It's not complete yet, but might it might be good later on: http://our.umbraco.org/documentation/v501/Reference/Templating/Umbraco-Helpers/

    Jeroen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies