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 use in my xslt list of products with images.
If I use this code in list:
<img alt='{@nodeName}' src="/images/default.png"> <xsl:attribute name="class"> <xsl:choose> <xsl:when test="string-length(./data[@alias='MainImage']) > 0"> <xsl:variable name="currentMedia" select="umbraco.library:GetMedia(./data[@alias='MainImage'], false)"/> <xsl:choose> <xsl:when test="string-length($currentMedia/data[@alias='ImageThumbs']/crops/crop[@name='Main']/@url) > 0"> src[<xsl:value-of select="$currentMedia/data[@alias='ImageThumbs']/crops/crop[@name='Main']/@url"/>] </xsl:when> <xsl:otherwise> src[/umbraco/ImageGen.ashx?image=<xsl:value-of select="$currentMedia/data[@alias='umbracoFile']"/>&width=90&height=80] </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="@nodeTypeAlias='Product'"> src[/images/product.jpg] </xsl:when> <xsl:otherwise> src[/images/default.png] </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:attribute> </img>
I get:
If I remove it, everithing works fine.
What I do wrong in this code that affects on this error?
Thanks,
kukuwka
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
Internet Explorer cannot display the webpage
Hi,
I use in my xslt list of products with images.
If I use this code in list:
I get:
Internet Explorer cannot display the webpage.
If I remove it, everithing works fine.
What I do wrong in this code that affects on this error?
Thanks,
kukuwka
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.