This has probably been put out there before, but I cannot find it.
How would I make a string of the files of a media folder I have chosen from a media picker. I am using Umbraco 4.7.1 and using XSLT, eventually going to switch over to Razor.
I would need the filenames in string format. Example: myimage1.jpg, myimage2.jpg,myimage3.jpg with not trailing comma of course.
String from Media folder - XSLT
This has probably been put out there before, but I cannot find it.
How would I make a string of the files of a media folder I have chosen from a media picker. I am using Umbraco 4.7.1 and using XSLT, eventually going to switch over to Razor.
I would need the filenames in string format. Example: myimage1.jpg, myimage2.jpg,myimage3.jpg with not trailing comma of course.
Thanks in advance
I have this as my XSLT but I need them separated by Commas.
<xsl:for-each select="umbraco.library:GetMedia(imageSequenceFolder,'true')/descendant-or-self::*[@nodeTypeAlias='Image']">
<xsl:variable name="imageString" select="string(current()/umbracoFile)" />
<xsl:value-of select="$imageString"/>
</xsl:for-each>
Admins: Also when I try to edit my post here in the forum, I get an XSLT error. I am using Chrome. Not sure if that is an issue.
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.