Copied to clipboard

Flag this post as spam?

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


  • Sutur 3 posts 20 karma points
    Mar 16, 2009 @ 00:15
    Sutur
    0

    display image within template

    I maybe overlooking something obvious, but still:

    Using Umbrao 4, how do I display an image within a template? When I select the corresponding field (mediapicker of an uploaded image), it just shows the content-id (or whatever the number represents). How do I get to see the actual image?

    Thanks.

  • Simon Justesen 436 posts 203 karma points
    Mar 16, 2009 @ 00:46
    Simon Justesen
    1

    If you are using the media picker datatype for selecting the image, you can do like this in an xslt-file:

    [code]

    [/code]

    In Umbraco 4 there are easier ways to do this with inline xslt, but I'll leave that to the guys more accustomed to Umbraco 4 than I am.

  • Sutur 3 posts 20 karma points
    Mar 16, 2009 @ 10:04
    Sutur
    0

    [quote=Simm]If you are using the media picker datatype for selecting the image, you can do like this in an xslt-file:

    In Umbraco 4 there are easier ways to do this with inline xslt, but I'll leave that to the guys more accustomed to Umbraco 4 than I am.

    [/quote]

    Thanks for your response. It strikes me as very strange that I have to put in lines of xslt-code to just show an image.

    Also, when reading the books and comparing code, I'm in doubt if I should have installed version 3 instead of version 4. In my sample project I see all kind of .Net code, which I don't see in the version-3 code examples.

  • 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