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 4909 posts 12266 karma points MVP 5x 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

  • 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