Tuesday, October 19, 2010

Sharepoint Trivia -- 2

This post contains information about creating custom navigation menu for the sharepoint site.
(Sorry for the bad quality of images)

1. Create a custom sitemap file. Save it as mycustom.sitemap.


2. Save this file in the location : C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\mycustom.sitemap.
3. Add a sitemap provider to the web.config.


4. Add a sitemap data source to master page.
a. Open Sharepoint designer and open the master page of the site.
b. Look out for line <>
asp:SiteMapDataSource ShowStartingNode="True" runat="server"
ID="MyCustomSiteMap" SiteMapProvider="MyCustomSiteMapProvider" />

5. Modify the data source for Sharepoint menu.
a. In sharepoint designer, look out for line <>
DataSourceID = "MyCustomSiteMapProvider"
b. Save the master page and see the change.

No comments: