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.
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 :-/
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:
What am I doing wrong??
Thanks for your help,
Anthony Candaele
Belgium
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
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
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
is working on a reply...