Skip to main content

Cloud

MySites: Change Global Navigation and Visibility.

Often we need to add more tabs to the global navigation of a MySite. By default, you get to see "My Site" and "My Profile" and even if you add more links using the Top Link Bar tool in Settings page, they wont show up in the Top navigation.This is because the provider specified in the web.config for the MySites Navigation ignores the Global navigation nodes specified by the user.

This is the provider for the mySites in the web.config.

<add name="MySiteMapProvider" description="MySite provider that returns areas and based on the current user context" type="Microsoft.SharePoint.Portal.MySiteMapProvider, Microsoft.SharePoint.Portal, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />

Just change this to the provider which is used to pull in data for the top navigation of your Publishing Site – "GlobalNavSiteMapProvider".

This is how your changed entry will look like:

<add name="MySiteMapProvider" description="" type="Microsoft.SharePoint.Publishing.Navigation.PortalSiteMapProvider, Microsoft.SharePoint.Publishing, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" NavigationType="Global" EncodeOutput="true" />

This will now look for links that the user has entered using the Top Link Bar tool in the settings page. (http://moss/personal/administrator/_layouts/topnav.aspx) and display them in the global navigation.

These links though wont show up when user’s profile (http://moss/MySite/Person.aspx?accountname=MOSSAdministrator) is accessed by some other user. My colleague, Bob and I worked on this and found a solution to this using which you don’t have to modify OOTB files and still have the tabs displayed when accessing profile’s other than yours.

Here is a link to Bob’s Blog. He will blog about it soon.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Amol Ajgaonkar

More from this Author

Follow Us