<!-- uComponents: Multi-node Tree Picker - An XSLT example ===================================== The Multi-node Tree Picker data-type will provide XML data based on the nodes you have selected. In this example, the property alias name for the Multi-node Tree Picker is "treePicker". -->
<!-- First we check that the Multi-node Tree Picker has any nodeId values --> <xsl:iftest="$currentPage/featuredProjects/MultiNodePicker/nodeId"> <ulid="featuredHome"class="equalHeight"> <!-- Loop through each of the nodeId values --> <xsl:for-eachselect="$currentPage/featuredProjects/MultiNodePicker/nodeId"> <!-- Since we only have the nodeId value, we need to get the actual content node using umbraco.library's GetXmlNodeById method --> <!-- If you prefer to use pure XPath, then used this: "$currentPage/ancestor-or-self::*[@isDoc and @level = 1]/descendant-or-self::*[@isDoc and @id = current()]" --> <xsl:variablename="node"select="umbraco.library:GetXmlNodeById(.)"/> <li> <!-- Output the URL using umbraco.library's NiceUrl method --> <!-- Image --> <xsl:variablename="mediaId"select="number(thumbnailImage)"/> <xsl:iftest="$mediaId > 0"> <xsl:variablename="mediaNode"select="umbraco.library:GetMedia(., 0)"/> <xsl:iftest="$mediaNode/umbracoFile"> <ahref="{umbraco.library:NiceUrl(@id)}"><imgsrc="{$mediaNode/umbracoFile}"alt="{$mediaNode/@nodeName}" /></a> </xsl:if> </xsl:if> <!-- Image --> <h3><xsl:value-ofselect="$node/@nodeName"/></h3> <p><ahref="{umbraco.library:NiceUrl(.)}"><xsl:value-ofselect="$node/projectAbstract"/><span>+</span></a></p> </li> </xsl:for-each> </ul> </xsl:if>
MultiNode tree picker and images
Hi,
I have this code to pull some text/ images from a multi node tree picker, I'm perplexed as to why its not returning images?
Any help would be greatly appreciated!
Got it!
is working on a reply...