Hi All,
I kind of lost at the moment from what seems to be simple to do in razor but just cant get it working in xslt.
I have a xslt macro using parameter mediaCurrent where i have the following structure in my media
Gallery 1
album 1
album 2
album 3
We need to display each album name and whithin it display the first image. Something like
Album 1 Album 2 Album 3
img 1 img1 img 1
am not sure of how to get it working after displaying the folder (album 1-3) here
<xsl:variable name="mediaFolder" select="/macro/docFolder"/>
<xsl:template match="/">
<!-- start writing XSLT -->
<xsl:if test="$mediaFolder">
<xsl:value-of select="$mediaFolder"/>
<xsl:variable name="folder" select="umbraco.library:GetMedia($mediaFolder/*/@id, 'true')/Folder" />
<xsl:for-each select="$folder"> <xsl:value-of select="@nodeName"/>
</xsl:for-each>
</xsl:if>
</xsl:template>
Any help on this ?