Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
I have the following code in my XSLT file but the RightImage is not showing up. The RightImage is stored in:
Media -> Showcase -> Showcase 2013 -> Liverpool -> Header -> RightImage
(The Umbraco version in use is 4.0.2.1)
Any help please? Thanks.
-----------------------------------------------------------------------------------------------------------------------
<xsl:template match="/"> <xsl:choose> <xsl:when test="$currentPage/data[@alias='RightImage'] != ''"> <xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/data[@alias='RightImage']/text(), 0)"/> <h1><img src="{$img/data[@alias = 'umbracoFile']/text()}" alt="{$img/@nodeName}" width="{$img/data[@alias='umbracoWidth']}" height="{$img/data[@alias='umbracoHeight']}" /></h1> </xsl:when> </xsl:choose> <a href="http://www.bbcworldwide.com"><img src="/media/16950/bbclogo.jpg" alt="BBC Worldwide" /></a></xsl:template>
is working on a reply...
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.
Continue discussion
Image from Media Picker is not showing
Hi,
I have the following code in my XSLT file but the RightImage is not showing up. The RightImage is stored in:
Media -> Showcase -> Showcase 2013 -> Liverpool -> Header -> RightImage
(The Umbraco version in use is 4.0.2.1)
Any help please? Thanks.
-----------------------------------------------------------------------------------------------------------------------
<xsl:template match="/">
<xsl:choose>
<xsl:when test="$currentPage/data[@alias='RightImage'] != ''">
<xsl:variable name="img" select="umbraco.library:GetMedia($currentPage/data[@alias='RightImage']/text(), 0)"/>
<h1><img src="{$img/data[@alias = 'umbracoFile']/text()}" alt="{$img/@nodeName}" width="{$img/data[@alias='umbracoWidth']}" height="{$img/data[@alias='umbracoHeight']}" /></h1>
</xsl:when>
</xsl:choose>
<a href="http://www.bbcworldwide.com"><img src="/media/16950/bbclogo.jpg" alt="BBC Worldwide" /></a>
</xsl:template>
is working on a reply...
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.