Copied to clipboard

Flag this post as spam?

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


  • Peter Bradsted Bodenhoff 27 posts 47 karma points
    Jan 06, 2010 @ 15:20
    Peter Bradsted Bodenhoff
    0

    Problem showing image from Media

    Hi All

    I have some troubles showing an image from the media-folder. I have tried with the following code:

    -- snip --
    <td colspan="7">
        <umbraco:Item runat="server" field="frontPicture" xslt="concat('<img src=', umbraco.library:GetMedia({0},'true')/data[@alias='umbracoFile'], ' />')" />
    </td>
    -- end snip --

    ... but it only shows the text "<img src=/media/498/front-photo.jpg />" on the screen and no picture :o(

    What have I done wrong??

  • Thomas Höhler 1237 posts 1709 karma points MVP
    Jan 06, 2010 @ 16:18
    Thomas Höhler
    0

    Take a look into the wiki: http://our.umbraco.org/wiki/reference/templates/umbracoitem-element/inline-xslt

    The last example should do it...

    Thomas

  • Peter Bradsted Bodenhoff 27 posts 47 karma points
    Jan 07, 2010 @ 08:44
    Peter Bradsted Bodenhoff
    0

    Yes!

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft