I have a product page with an XSLT breadcrumb, which works fine when you travel down the eCom structure.
For example: Home » Products » Doomsday weapons
However, as soon as I go to a specific product, it stops, and instead I simply get the path to the product page.
Home » Products
Of course, I would like to display the product in the breadcrumb, even if I can't give the full path. For example:
Home » Products » 8000 GW Plasma Artillery Deluxe Edition
I can't seem to get any output for the product in the XML.
I've tried to toggle the "Show on paragraph" option, but to no avail.
I've also tried to toggle the "Product page" in the navigation settings.
It's set to show max levels.
Here's my XSLT:
<xsl:template match="/NavigationTree"> <xsl:if test="count(//Page) > 0"> <li><a href="/">Forside<span></span></a></li> <xsl:apply-templates select="//Page[@InPath='True']"> <xsl:with-param name="depth" select="1"/> </xsl:apply-templates> </xsl:if> </xsl:template> <xsl:template match="//Page[@InPath='True']"> <xsl:param name="depth"/> <li> <a> <xsl:if test="@Allowclick='True'"> <xsl:attribute name="href"><xsl:value-of select="@FriendlyHref" disable-output-escaping="yes"/></xsl:attribute> </xsl:if> <xsl:value-of select="@MenuText" disable-output-escaping="yes"/> </a> </li> </xsl:template>
What am I doing wrong?