Copied to clipboard

Flag this post as spam?

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


  • Anthony Candaele 1197 posts 2049 karma points
    Feb 12, 2011 @ 11:39
    Anthony Candaele
    0

    problem showing image

    Hi,

    For my homepage documenttype I have a property 'Banner' (Media Picker)

    In my banner.xslt I have this code:

    <xsl:if test="$currentPage/banner != ''">
                <img alt="{$currentPage/@nodeName}">
                  <xsl:attribute name="src">
        <xsl:value-of select="umbraco.library:GetMedia($currentPage/banner, false() )/Image/umbracoFile" />
                  </xsl:attribute> 
                </img>
             </xsl:if>

    In my content I pick the image from the Media Library:

    But the only thing that get's rendered in my page is the alt-attribute of the image-tag:

    <img alt="en" src="" />

    What am I doing wrong??

    Thanks for your help,

    Anthony Candaele
    Belgium

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 12, 2011 @ 12:39
    Jan Skovgaard
    1

    Hi Antony

    This seems to be the same you're asking in here? :-) http://our.umbraco.org/forum/using/ui-questions/17303-problem-with-getMedia?p=0#comment64872

    Please only post once - I have made some suggestions for you in the other post.

    Cheers

    /Jan

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 12, 2011 @ 14:48
    Anthony Candaele
    0

    Hi Jan,

    Yeah, sorry, when editing this post I got an xslt parser error every time. So I thought no one was able to reply to this post. So I made a new post on the same subject.

    greetings,

    Anthony

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 12, 2011 @ 16:04
    Jan Skovgaard
    0

    Hi Anthony

    Yeah, it seems like our is a bit buggy when trying to post sometimes. I'm also having issues with this today. So today is a day one must really remember to use ctrl+a and ctrl+c before posting :-/

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft