Copied to clipboard

Flag this post as spam?

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


  • Johan Möller 83 posts 137 karma points
    Mar 03, 2010 @ 10:00
    Johan Möller
    0

    Looping media folder/children

    On a product page I want to iterate thrue a mediafolders children to check for images that has been taged with with a products name.

    Ive never looped media nodes before so i dont know where to start but im trying to do something like this to start with.

     <xsl:for-each select="umbraco.library:GetMedia(1167/node)">

    1167 being the mediafolders id.

     Am i on the right track or how shoud i go about solving this?

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 03, 2010 @ 10:18
    Dirk De Grave
    1

    Johan,

     

    GetMedia() expects two parameters, the second being a boolean indicating whether to iterate a single media item or a media item and its child nodes.

    Have a look at Lee's blog post about using GetMedia() in xslt's.

     

    Cheers,

    /Dirk

  • Johan Möller 83 posts 137 karma points
    Mar 03, 2010 @ 10:41
    Johan Möller
    0

    Ah, explained alot thanks Dirk.

  • 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