Copied to clipboard

Flag this post as spam?

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


  • pna 11 posts 31 karma points
    Feb 03, 2013 @ 11:38
    pna
    0

    Razor: img url

     

    I am trying to extrac a specific image

    from  the media gallery   - but donĀ“t get the full url  I guess it is simple..

    'Any hints appreciated

     

     

    @{

      var media = Model.MediaById(1337);

      <img src="@media.umbracoFile"/>

    }

    - returns   :    <img src=" media 3816  bruger1.png">

     

     


  • Mike Chambers 636 posts 1253 karma points c-trib
    Feb 04, 2013 @ 09:10
    Mike Chambers
    0

    @media.Url

Please Sign in or register to post replies

Write your reply to:

Draft