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
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" />
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted