+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Selected tab on SiteTabstrip

Selected tab on SiteTabstrip

2 posts, 0 answered
  1. Pierre Alain
    Pierre Alain avatar
    38 posts
    Registered:
    10 Jun 2008
    27 May 2010
    Link to this post
    Hi,

    I have a SiteTabstrip set up like this:

    <sfUC:SiteTabstrip ID="MainMenu" runat="server" StartingNodeOffset="1" StartFromCurrentNode="False" ShowOnlyFirstLevel="False"></sfUC:SiteTabstrip

    It is used has the main site navigation and shows only the first level of pages (products, services, company, ...).

    We've created a skin for it and setup all class we needed, including .rtsSelected.

    Whenwe switch to any page on that first level, everything works fine. The selected page is highlighted as we want on the SiteTabstrip.

    However, if we navigate to a child page, say Products > Product1, the parent page(Products in this case) tab is not selected anymore.

    How do I keep the tab selected when we navigate to child pages?

    Thank you.

    UPDATE: It seems this only happens when we have a page group as a child and we are redirected to its first child. For example Products > Product1 > Overview, where both Products and Product1 are PageGroup.

  2. Pierre Alain
    Pierre Alain avatar
    38 posts
    Registered:
    10 Jun 2008
    27 May 2010
    Link to this post
    I found the problem. The page/pagegroup had No for 'Show in navigation'. Setting it back to Yes showed the parent as selected in the SiteTabstrip.

    Not sure if this is by design. It is kind of strange that the parent would not show as selected even if we do not want to show the child in the navigation.
2 posts, 0 answered