Copied to clipboard

Flag this post as spam?

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


  • Den Gordo 29 posts 49 karma points
    Sep 25, 2012 @ 16:56
    Den Gordo
    0

    Get individual id from comma separated list of id's

    Hi,

    I setup DAMP to store id only (not full xml) and my xslt output looks like this

    <pagemultiimages>1538,1547,1539</pagemultiimages>

    How do I loop through individual id in for-each clause?

    <xsl:variable name="Items" select="$currentPage/PageMultiImages"/>
      <xsl:for-each select="$Items">
          <img src="{umbraco.library:GetMedia(.,false())/umbracoFile}" />
      </xsl:for-each>
      </xsl:if>

    P.S. I know I can store full XML and use it, but not in this case.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Sep 25, 2012 @ 16:59
    Jeroen Breuer
    0

    Hello,

    I think you can use the Split method for this: http://our.umbraco.org/wiki/reference/umbracolibrary/split.

    Jeroen

  • Den Gordo 29 posts 49 karma points
    Sep 25, 2012 @ 17:11
    Den Gordo
    0

    Hi Jeroen,

    Thanks a lot!

    Regards Den

Please Sign in or register to post replies

Write your reply to:

Draft