Copied to clipboard

Flag this post as spam?

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


  • Bongbong 20 posts 40 karma points
    Aug 17, 2012 @ 12:48
    Bongbong
    0

    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>

Please Sign in or register to post replies

Write your reply to:

Draft