Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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
Ah, explained alot thanks Dirk.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
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
Ah, explained alot thanks Dirk.
is working on a reply...