in

SharePoint University

Clean slate. Nothing but SharePoint.
Go, SharePoint!

Menu Item not highlighted when selected.

Last post 07-04-2008 4:39 AM by mujtaba_muji. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 07-04-2008 4:39 AM

    Menu Item not highlighted when selected.

    have placed the following code for menu in my master page. I have changed the datasource of the menu. Now it is not showing the selected link. CSS are fine because on HOVER it is highlighting it.

     

    This is menu.

    <SharePoint:AspMenu
       ID="TopNavigationMenu"
       Runat="server"
       DataSourceID="siteMapDataSource1"
       EnableViewState="false"
       AccessKey="<%$Resources:wss,navigation_accesskey%>"
       Orientation="Horizontal"
       StaticDisplayLevels="2"
       MaximumDynamicDisplayLevels="1"
       DynamicHorizontalOffset="0"
       StaticPopoutImageUrl="/_layouts/images/menudark.gif"
       StaticPopoutImageTextFormatString=""
       DynamicHoverStyle-BackColor="#CBE3F0"
       SkipLinkText=""
       StaticSubMenuIndent="0"
       CssClass="menuStyle">
       <StaticMenuItemStyle CssClass="menuItemStyle" ItemSpacing="0px"/>  
       <StaticSelectedStyle CssClass="menuStyleHover" />
       <StaticHoverStyle CssClass="menuStyleHover" />  
     </SharePoint:AspMenu>
     

    This is datasource for menu.

     

    <PublishingNavigationStick out tongueortalSiteMapDataSource ID="siteMapDataSource1" Runat="server"
             SiteMapProvider="CombinedNavSiteMapProvider" EnableViewState="true"
             StartFromCurrentNode="true" StartingNodeOffset="0" ShowStartingNode="false"
             TreatStartingNodeAsCurrent="true" TrimNonCurrentTypes="Heading"/>

    I had to change the datasource because my site was a publishing site and it was creating an extra menu item (by the name of the site) so I changed datasource. Now it is not showing the selected link. I mean when I click any menu item it goes to that page but in menu it is not highlighted as selected link. It was working well before I changed the datasource. Any solution to this problem?

     

    Thanx in advance.


     

Page 1 of 1 (1 items)

Need SharePoint Training? Attend a SharePoint Bootcamp!
Forum content (c) original posters. Everything else (c) 2008 SharePoint Experts, Inc.