Developer forum

Forum » Ecommerce - Standard features » Product page always Active

Product page always Active

Martin Grønbekk Moen
Reply

In my breadcrumb, the product page is always active.

 

Look at my example breadcrumb (screenshot), and below is my XML.

 

  <Page MenuText="Produkter" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" Href="Default.aspx?ID=4" FriendlyHref="/Produkter" Title="" RelativeLevel="1" Sort="1" LastInLevel="True" ChildCount="6" class="L1_Active" NavigationTag="" ID="4" AreaID="1" InPath="True" Active="True" AbsoluteLevel="1">
    <Page SmallImage="" LargeImage="" Icon="" MenuText="Datautstyr" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" Href="Default.aspx?ID=4&amp;GroupID=GROUP2" FriendlyHref="/Produkter/Datautstyr" Title="" RelativeLevel="2" Sort="1" LastInLevel="True" ChildCount="4" class="L2_Active" NavigationTag="" ID="4" AreaID="1" InPath="True" Active="False" AbsoluteLevel="2">
      <Page SmallImage="" LargeImage="" Icon="" MenuText="Harddisker" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" Href="Default.aspx?ID=4&amp;GroupID=GROUP8" FriendlyHref="/Produkter/Datautstyr-Harddisker" Title="" RelativeLevel="3" Sort="1" LastInLevel="True" ChildCount="4" class="L3_Active" NavigationTag="" ID="4" AreaID="1" InPath="True" Active="False" AbsoluteLevel="3">
        <Page SmallImage="" LargeImage="" Icon="" MenuText="Dokkingstasjoner" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" Href="Default.aspx?ID=4&amp;GroupID=GROUP12" FriendlyHref="/Produkter/Datautstyr-Harddisker-Dokkingstasjoner" Title="" RelativeLevel="4" Sort="1" LastInLevel="True" ChildCount="0" class="L4_Active" NavigationTag="" ID="4" AreaID="1" InPath="True" Active="True" AbsoluteLevel="4" />
        <Page SmallImage="" LargeImage="" Icon="" MenuText="Eksterne" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" Href="Default.aspx?ID=4&amp;GroupID=GROUP13" FriendlyHref="/Produkter/Datautstyr-Harddisker-Eksterne" Title="" RelativeLevel="4" Sort="2" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="4" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" />
        <Page SmallImage="" LargeImage="" Icon="" MenuText="SAS" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" Href="Default.aspx?ID=4&amp;GroupID=GROUP14" FriendlyHref="/Produkter/Datautstyr-Harddisker-SAS" Title="" RelativeLevel="4" Sort="3" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="4" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" />
        <Page SmallImage="" LargeImage="" Icon="" MenuText="SSD" MouseOver="" Image="" ImageActive="" ImageMouseOver="" Allowclick="True" ShowInSitemap="True" Href="Default.aspx?ID=4&amp;GroupID=GROUP15" FriendlyHref="/Produkter/Datautstyr-Harddisker-SSD" Title="" RelativeLevel="4" Sort="4" LastInLevel="True" ChildCount="0" class="L4" NavigationTag="" ID="4" AreaID="1" InPath="False" Active="False" AbsoluteLevel="4" />
      </Page>
    </Page>
  </Page>

How can I avoid this?

Skjermbilde.PNG

Replies

 
Nicolai Høeg Pedersen
Reply

Hi Martin

 

You cannot avoid it since the page is active and the groups are shown. But you can test if you are on a group by doing something like this:

 

<xsl:if test="contains(NavigationTree/Settings/GlobalTags/Global.Request.Query, 'GroupID')">
do not set active class
</xsl:if>

BR Nicolai

 

You must be logged in to post in the forum