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 using the DAMP to show a list of PDF's.
Ive changed the datatype to show mulitple items.
My problem being that when i load multiple files, it is repeating the first file.
<!--DAMP File - DOWNLOAD--> <xsl:variable name="file" select="dampFile/DAMP/mediaItem/File" /> <xsl:if test="$file"> <ul> <xsl:for-each select="$file"> <li class="download"><a href="{$file/umbracoFile}" target="_blank"><xsl:value-of select="$file/@nodeName"/></a></li> </xsl:for-each> </ul> </xsl:if>
Thanks
Martin
Almost good :). Try this:
<!--DAMP File - DOWNLOAD--> <xsl:variable name="file" select="dampFile/DAMP/mediaItem/File" /> <xsl:if test="$file"> <ul> <xsl:for-each select="$file"> <li class="download"><a href="{umbracoFile}" target="_blank"><xsl:value-of select="@nodeName"/></a></li> </xsl:for-each> </ul> </xsl:if>
Jeroen
Thanks Jeroen.
Works a treat.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
DAMP - Multiple Files
Hi,
Im using the DAMP to show a list of PDF's.
Ive changed the datatype to show mulitple items.
My problem being that when i load multiple files, it is repeating the first file.
Thanks
Martin
Almost good :). Try this:
Jeroen
Thanks Jeroen.
Works a treat.
is working on a reply...