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, Im trying to output multiple images using the DAMP.
It works fine when I select only one image. But when mulitple images are selected, I get a parsing error.
My XSLT is
<xsl:template match="/"><h3>GALLERY</h3> <xsl:variable name="media" select="$currentPage/caseImage" /> <xsl:for-each select="$media"> <xsl:variable name="mediaNode" select="umbraco.library:GetMedia($media, 0)" /> <img class="scale-with-grid" src="{$mediaNode/umbracoFile}" alt="{@nodeName}"/> </xsl:for-each> </xsl:template>
From other posts on the forum, Ive seen the variable path point to "/DAMP/mediaItem/Image"
Is this required somehow for DAMP?
Any help would be grateful
Martin
(DELETED)
OK, I give up - tried to edit my answer but this editor just plain doesn't work the way it should, here's the corrected code:
<xsl:variable name="media"select="$currentPage/caseImage/DAMP[@fullMedia]/mediaItem" /> ... <!-- Inside for-each --> <xsl:variable name="mediaNode"select="Image" />
/Chriztian
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Multiple Images with DAMP Problem
Hi, Im trying to output multiple images using the DAMP.
It works fine when I select only one image. But when mulitple images are selected, I get a parsing error.
My XSLT is
From other posts on the forum, Ive seen the variable path point to "/DAMP/mediaItem/Image"
Is this required somehow for DAMP?
Any help would be grateful
Martin
(DELETED)
OK, I give up - tried to edit my answer but this editor just plain doesn't work the way it should, here's the corrected code:
/Chriztian
is working on a reply...