Copied to clipboard

Flag this post as spam?

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


  • Sean Vowles 4 posts 73 karma points
    Nov 29, 2015 @ 21:58
    Sean Vowles
    0

    <umbraco:image> help

    Hi all,

    I'm very new to using umbraco.

    At work we have our custom cms and when calling an image that has been uploaded using a cms we call it using the control

    cms:Image runat="sever" imageName="imagename.jpg" />

    I understand that umbraco:image... /> does a similar thing, however, I simply cannot get it work

    Could someone offer some guidance?

    Thank you

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Nov 29, 2015 @ 22:09
    Dennis Aaen
    0

    Hi Sean and welcome to Our.

    Regarding to to your post it´s looks to me that you are running your Umbraco Installation in WebForms, using master pages.

    Try to have a look at this documentation it should help you https://our.umbraco.org/documentation/Reference/Templating/Masterpages/umbracoimage

    <umbraco:image runat="server" field="bannerImage" />
    

    The "bannerImage" is the document type alias of the field.

    If you are using your Umbraco installation in MVC please let us know and then we can help you.

    Hope this helps,

    /Dennis

  • Sean Vowles 4 posts 73 karma points
    Nov 29, 2015 @ 22:57
    Sean Vowles
    0

    I believe it's MVC.

    Installed via an empty asp.net project and then packaged with NuGet

    I can get things to work by direct path: img src="~/media/1010/wood.jpg" /

    But to me that seems like the 'incorrect' way of doing things.

Please Sign in or register to post replies

Write your reply to:

Draft