I've got a list that links to a bunch of sibling pages. I've done two loops for preceding and following siblings along with the current page in the middle so that all the pages are always available. Each page has 2 properties set to them for this section. A SubText property which is just a TextString and an Icon which I had as a media file (png Image). I can't get the png icon to show and I'm not sure if I am doing it correctly. This is my code:
Code:
<xsl:element name="img">
<xsl:attribute name="src">
<xsl:value-of select="umbraco.library:GetMedia(data[@alias='Icon'], 'false')"/>
</xsl:attribute>
</xsl:element>
If I skip the test I'm still getting a compile error. I think I'm using GetMedia correctly but I'm obviously doing something wrong.
Lloyd