Copied to clipboard

Flag this post as spam?

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


  • siva kumar 120 posts 209 karma points
    May 03, 2013 @ 12:33
    siva kumar
    0

    how to use html image tag in razor like <h1> tags in umbraco4.7.1.1?

    how to use html image tag in razor like <h1> tags in umbraco4.7.1.1?

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    May 03, 2013 @ 12:44
    Dennis Aaen
    0

    Hi Siva,

    Lets say you have a Media Picker property on your DocumentType with alias photo. You should get the image in your page with the following razor syntax:

    <img src="@Model.MediaById(Model.photo).umbracoFile"alt=""/>

    /Dennis

  • siva kumar 120 posts 209 karma points
    May 03, 2013 @ 13:25
    siva kumar
    100

    thnak you dennis .it worked.

     

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    May 03, 2013 @ 13:34
    Dennis Aaen
    0

    Good to hear.

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft