Copied to clipboard

Flag this post as spam?

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


  • Michael Jensen 35 posts 85 karma points
    Mar 13, 2013 @ 11:35
    Michael Jensen
    0

    images not showing.

    Hey.

    can one of you tell me wath iam duning worng

    iam tryning to make a news item template that can be use to make news i have 4 categorys eats whit a images i have set er Media Picker to finde the category images but i can get it to work.

    a friend told me to use this <img src="<umbraco:Item field="catImages" runat="server" />" alt="" /> bur it only show a indicator that a images has to be right thear.  http://mj-solutions.dk/nyheder.aspx linkte to site

    Michael

    Site is hostede on Surftown Busnins server whit FUll trust

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 13, 2013 @ 11:44
    Dennis Aaen
    0

    Hi Michael,

    I think, you could try someting like this and see if it will work for you.

    <img src='<umbraco:Item field="catImages" runat="server" Xslt="umbraco.library:GetMedia({0},false())/umbracoFile"></umbraco:Item>' alt=''/>

    /Dennis

  • Michael Jensen 35 posts 85 karma points
    Mar 13, 2013 @ 11:48
    Michael Jensen
    0

    Hey Dennis.

     

    Yep that dit the job.

     

    Thanks.

     

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 13, 2013 @ 11:50
    Dennis Aaen
    0

    Hi Michael,

    Good to hear that. I´m glad that I could help you.

    /Dennis

  • Jeroen Breuer 4909 posts 12266 karma points MVP 5x admin c-trib
    Mar 13, 2013 @ 20:04
    Jeroen Breuer
    1

    Instead of umbraco:item try umbraco:image.

    Jeroen

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Mar 13, 2013 @ 20:25
    Dennis Aaen
    0

    Thanks, Jeroen, I forgot the new umbraco:image, but as i know it´s also relatively new option.

    Another alternative could also be XSLT http://our.umbraco.org/wiki/reference/umbracolibrary/getmedia

    /Dennis

     

  • 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