Copied to clipboard

Flag this post as spam?

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

  • Nathan Zhang 3 posts 73 karma points
    Sep 16, 2015 @ 01:58
    Nathan Zhang

    Get media picker image in XSLT loop


    I am totally stuck when trying to get a media image in XSLT loop. Generally, a XSLT loops a node 1157, and will print out all descendant if its document type is Dealitem, which is working already.

    I am able to pull heading, subheading fields in loop. But tried many ways to get a media picker field called "featuredimg", all failed. umbraco.library:GetMedia(featuredimage,false()) - Failed umbraco.library:GetMedia(current()/featuredimage,false()) - Failed umbraco.library:GetMedia(./featuredimage,false()) - Failed Error pops out when I try to save my XSLT file says:

    "Saving XSLT file failed: System.OverflowException: Value was either too large or too small for an Int32. ......"

    And I've attached my code below, can anyone help me with this please?

  •             <xsl:variable name="img" select="umbraco.library:GetMedia(featuredimage,false())" />
                <xsl:value-of select="$img/umbracoFile" />

Copy Link
Please Sign in or register to post replies

Write your reply to: