Developer forum

Forum » Development » eCom menu - xslt and @InPath

eCom menu - xslt and @InPath


Reply

I am making a eCom menu. It has to be in the left side of the site. I am having problems with showing it in the way I want to:

 

Groups in the root level of my shop has to be shown (and no other groups). When I click one of the groups the groups below, belonging to the group I just clicked (that would be level 2), has to be shown.

 

I am using this from a normal xslt menu, but it does not seem to work in this eCom menu as I in the xslt ask on this:

<xsl:if test="@InPath='True'">
  <xsl:if test="count(Group)">
    <ul id="M{@AbsoluteLevel}">
      <xsl:apply-templates select="Group">
        <xsl:with-param name="depth" select="$depth+1"/>
      </xsl:apply-templates>
    </ul>
  </xsl:if>
</xsl:if>

 

The subgroups for a group at L1 is shown, when I click the L1 item, but when i click a L2 item in the menu, only the L1 items are shown again.

 

Anyone who knows why this does not work. If it is not supposed to work I would like to know in which other way I can get it working.

 

 

// René


Replies

 
Reply

This question is related to templates, but this forum is dedicated. Could I ask you to post in the template forum? You're probably more likely to receive a useful answer there. Thanks:)

 

You must be logged in to post in the forum