Copied to clipboard

Flag this post as spam?

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


  • Ole 3 posts 23 karma points
    May 31, 2011 @ 10:49
    Ole
    0

    show an image in a news list item

    I am trying to add images to my news items, in my news list. I have a media picker in newsItem named "newsImage", in there I uploaded the image I want to display in the news list.

    I have tried to add the media picker, like I added the "summary" section of the news item. The problem is that I only get a four digit number, this is the name of the folder the image is in. 

    Is there a easy way to make this work correctly?

    The code for newsList.xslt

    Ole

  • John C Scott 457 posts 1157 karma points
    May 31, 2011 @ 10:52
    John C Scott
    0

    the number is the ID of the media item

    there is a great blog post here

    http://blog.leekelleher.com/2010/08/11/how-to-use-umbraco-library-getmedia-in-xslt-for-umbraco-v4-5/

    that gives some good techniques for turning that into an image

  • 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