Friday, July 6, 2007

Enable drop dowm menu on a team site's top link bar

By default, Sharepoint publising site's top link bar has the two level drop down menu that allows you to hide the sub menu items until the parent menu item gets mouse over.

But, the team site's top link bar doesn't have the functionality by default.

Here are the steps to achieve the dropdown menu functionality within a team site.

  1. Locate the masterpage file for the page on which you wanna see the two level menu.
    Usually it will be "default.master" unless some one has changed the masterpage.
  2. open the default.master in the sharepoint Designer.
    Open the site in the Sharepoint Designer and access th masterpage located at "/_catalog/masterpage/default.master" from the folder list.
  3. If you do not have the sharepoint designer, then open the file directly from the following location: "C:\Program Files\Common Files \Microsoft Shared\Webserver Extensions\12\Template\Global\default.master.
  4. Locate the "SiteMapDataSource" node in the default.master code
    <asp:SiteMapDataSource .. >

    and replace it with:
    <asp:SiteMapDataSourceShowStartingNode="True"SiteMapProvider="SPSiteMapProvider"id="topSiteMap"runat="server" />

  5. To get the dynamic menu loaed each time you access the top link,
    locate the
    < SharePoint.AspMenu  > 

    and change the "StaticDisplayLevels" and "MaximumDynamicDisplayLevels" values to:


  6. If you wanna explore the sub menu to further levels, increase the MasimumDynamicDisplayLevels value to the value you desire. I guess, it is limited to 4.

No comments:

Post a Comment