Hi,
I'm Laurence, I'm a Umbraco newb. I come from a PHP background, and I'm pretty new to asp.net and XSLT. That said, I love it... Umbraco is one the best CMS's I've ever used.
I'm building my first project at the moment...
I've used the "Ultimate Picker" package, to allow a user to select some images from the media library on a piece of content.
This seems to work well, however I'm having trouble making a useful output...
I've written this XSLT, to break down the output...
Code:
<xsl:variable name="Upload" select="$currentPage/data [@alias = 'Upload']" />
<xsl:variable name="UploadSplit" select="umbraco.library:Split($Upload, ',')" />
<xsl:for-each select="$UploadSplit/value">
<xsl:variable name="UploadSplitItem" select="$UploadSplit/value" />
<xsl:value-of select="$UploadSplitItem"/>
</xsl:for-each>
The problem is...
My Input- 1153,1154,1156,1157
My code then removes the comma's - 1153115411561157
My Output - 1153115311531153
So I get output for each item that exists in my input, but I can't work out a way of outputing the input data.
Ideally I'd like to end up with these ID's being driven into IMG tags.
Hopefully that makes sense! My english is pretty poor, so sorry!
Lau