How can I get a property from the parent node of a media item using “umbraco.library:GetMedia”?
This allows me to get the current nodes “@nodeName”
<xsl:value-of select="umbraco.library:GetMedia(., 0)/@nodeName" />
I want to get the parent of the current nodes “@nodeName”, I’ve tried the following but it doesn’t work:
<xsl:value-of select="umbraco.library:GetMedia(., 0)/../@nodeName" />
Can anyone help me out?
Cheers, JV
With a call to GetMedia() and the @parentID attribute in a variable, I’ve got it working using the following: