I'm trying to acces diferent pictures ragarding the document type of the child. I got it to work with accesing nodeName and listing those. Bold for one and italic for another.
Now im trying to acces the images i get an Error.
It is possible for me to get the first <xsl:when to return an image, but at the 2nd i get an system.OverflowExceptions:
Cant <xsl:Choose more than one image
I'm trying to acces diferent pictures ragarding the document type of the child.
I got it to work with accesing nodeName and listing those. Bold for one and italic for another.
Now im trying to acces the images i get an Error.
It is possible for me to get the first <xsl:when to return an image, but at the 2nd i get an system.OverflowExceptions:
The code:
<xsl:for-each select="$parent/* [@isDoc and @level <= $depth]">
<xsl:choose>
<!-- ducument type = Category -->
<xsl:when test="self::Category">
<a href="{umbraco.library:NiceUrl(@id)}">
<img alt="{@nodeName}" src="{umbraco.library:GetMedia(categotyImage,0)/umbracoFile}" />
</a>
<xsl:if test="count(./* [@isDoc and @level <= $depth]) > 0">
<xsl:call-template name="drawNodes">
<xsl:with-param name="parent" select="."/>
</xsl:call-template>
</xsl:if>
</xsl:when>
<!-- document type = Type -->
<xsl:when test="self::Type">
<a href="{umbraco.library:NiceUrl(@id)}">
<img alt="{@nodeName}" src="{umbraco.library:GetMedia(typeImage,0)/umbracoFile}" />
</a>
<xsl:if test="count(./* [@isDoc and @level <= $depth]) > 0">
<xsl:call-template name="drawNodes">
<xsl:with-param name="parent" select="."/>
</xsl:call-template>
</xsl:if>
</xsl:when>
<!-- -->
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
Regards Martin
is working on a reply...