Hey,
I'm having trouble displaying my eCom product groups in the navigation. I've attached a screenshot of my navigaion-setup as seen on the primary shop page.
I'm currently using the following navigation template:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="xml" omit-xml-declaration="yes" indent="yes" encoding="utf-8" />
<xsl:param name="html-content-type" />
<xsl:template match="/NavigationTree">
<xsl:if test="count(//Page/Page[contains(@Href, 'GroupID')]) > 0">
<ul class="M0">
<xsl:apply-templates select="Page/Page[contains(@Href, 'GroupID')]">
<xsl:with-param name="depth" select="1"/>
</xsl:apply-templates>
</ul>
</xsl:if>
</xsl:template>
<xsl:template match="//Page">
<xsl:param name="depth"/>
<li class="{@class}">
<a class="{@class}">
<xsl:attribute name="href">
<xsl:value-of select="@FriendlyHref" disable-output-escaping="yes"/>
</xsl:attribute>
<xsl:value-of select="@MenuText" disable-output-escaping="yes"/>
</a>
<xsl:if test="count(Page) and @InPath='True'">
<ul class="M{@AbsoluteLevel}">
<xsl:apply-templates select="Page">
<xsl:with-param name="depth" select="$depth+1"/>
</xsl:apply-templates>
</ul>
</xsl:if>
</li>
</xsl:template>
</xsl:stylesheet>
The xpath selection fails, which isn't too surprising considering that none of my eCom product groups are included in the xml being generated from Management Center > Designer > Navigations XML
Thanks in advance :)
(translated for future reference)