Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Carlos 338 posts 472 karma points
    Apr 20, 2012 @ 18:55
    Carlos
    0

    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

  • Carlos 338 posts 472 karma points
    Apr 20, 2012 @ 19:12
    Carlos
    0

    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.

     

     

     

     

  • 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.

Please Sign in or register to post replies