Skip to main content

Customize My Profile Tabs for SharePoint 2010

If you have a requirement to add, edit, or delete the tabs within the my profile pages its actually quite easy.  The default tabs are:

  • Overview
    • URL: /my/person.aspx
  • Organization
    • URL: /my/OrganizationView.aspx
  • Content
    • URL: /my/personcontent.aspx
  • Tags and Notes
    • URL: /my/_layouts/thoughts.aspx
  • Colleagues
    • URL: /my/_layouts/MyContactLinks.aspx
  • Memberships
    • /my/_layouts/MyMemberships.aspx

image

You can manage these tabs by navigating to the My Site Host http://sitename/my/ or the the my profile page http://sitename/my/Person.aspx.

Click on Site Actions > Site Settings > Look and Feel > Quick Launch

image

You will notice that all of the tabs are managed as quick launch links. This will allow you to easily add, edit, and delete tabs.

If you want to customize the look of the tabs to be vertical or place it somewhere else on the page you simply have to modify the person.aspx page within the My Site host Site collection.

Open up the site (http://sitename/my/) in SharePoint Designer 2010, and click on All Files.

image

Notice that 3 out of the 6 .aspx files are managed in SharePoint and the other three are stored on the server in the following location: C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS

Check out the person.aspx file and edit in advanced mode.

The tabs on the profile page are actually a SharePoint:AspMenu menu control. Which has a horizontal orientation and a unique “s4-sn” css class to give it its unique look and feel.

<SharePoint:AspMenu
     ID="MySiteSubNavigationMenu"
     Runat="server"
     EnableViewState="false"
     DataSourceID="MySiteSubNavDS"
     AccessKey="<%$Resources:wss,navigation_accesskey%>"
     UseSimpleRendering="true"
     UseSeparateCss="false"
     Orientation="Horizontal"
     StaticDisplayLevels="1"
     MaximumDynamicDisplayLevels="0"
     PopOutImageUrl=""
     SkipLinkText=""
     CssClass="s4-sn">
  </SharePoint:AspMenu>
  <SPSWC:MySiteDataSource
     ShowStartingNode="False"
     SiteMapProvider="MySiteSubNavProvider"
     id="MySiteSubNavDS" 
     runat="server"/>

This control is placed on all 6 of the aspx pages to give the effect that a user is simply changing the content on the page by clicking on a different tab and not actually going to a different page.

The key is to keep that consistency throughout your custom profile pages so that the user does not get confused when navigating the tabs.

Comments

tatyaso said…
Changing the "default.aspx" in Sharepoint personal Mysite to "xyz.aspx"


i.e. i want to change the url of

http://server/personal/user/default.aspx to some other url.
JimNJ72 said…
What if you want to change the top portion that displays the profile fields. Does that need to be changed on all 6 pages or is it centrally located somewhere other then in Person.aspx?
Erik Swenson said…
JimN72,

Yes you will have to make those changes for all of custom pages if you want a seamless experience for the users when navigating between the different pages.
c_marius said…
I think you have to consider that if you activate publsihing features, then you have to use the Navigation features to change the headings, etc.
Anonymous said…
Hi,
How to customize the 3 files in LAYOUTS directory ?

Can you write a blog about changing global nav area in MySite (DelegateControl )?
Andreas said…
Thanks for the info didn't know it is so easy to remove the tabs...
Anonymous said…
How can we attach an Event Receiver to 'Add Colleagues' event.
Anonymous said…
Thanks for Gr8 article !!

Is it possible to modify the MySite link with MyProfile link and when Myprofile page opened then we should show default tab as Content ? Please provide me steps to achieve the above functionality.

Cheers,
Raj
Nick Adams said…
Thanks you share with me this great post.It is very useful for me.Thanks a lot.....bookmarks
Ofer Gal said…
So how do you include extra properties added to the profile?
I got the idea of new page under a new tab. I do not see a way to add my multi value properties.

Popular posts from this blog

SharePoint 2010 Base CSS Classes

This will be the first of many SharePoint 2010 posts. I will be focusing on a few of the main CSS classes used for SharePoint 2010 Public Beta. As the product becomes more final there might be some changes to the class names but I will be sure to create a new post if that happens. This will be quite a lengthy but it should be helpful. The default CSS given below are just highlights of the full CSS attributes for that class.I will be using a basic team site as my base for the screenshots. Here is a basic structure of the main areas that I will cover.Ribbon RowTable Row Left Site Actions Navigate Up Edit Tab List Browse Page Table Row Right Give Feedback Welcome Menu WorkspaceBody Container Title Row Title Title Logo Title Text / BreadcrumbPage DescriptionSocial Data SeparatorI like It Tags/Notes Top Header 2/Top Links li Static-Selected li Static SearchHelpStatus Bar Container Main A…

How To: Hide Left Side Navigation on Home Page

I was recently asked: "How can I hide the side nav bar on the main homepage layout ?? I want to be able to use the side NAV with in the team site etc etc, but I don't want it on the front page.. " There are a couple of ways to do this in SharePoint 2010. If you are using a non-publishing site you can add a Content Editor Web Part to the page and add the following to the HTML Source.
<Style>
body #s4-leftpanel
{
display: none;
}
.s4-ca
{
margin-left: 0px;
}
</style>
Basically the CSS above hides the left navigation Div, and then sets the content area to not have a left margin. Once you are done, simply modify the web part and hide it on the page. If you are using a publishing site for your homepage simply add the same styles specified above to a custom page layout. That way if you have a need for other pages that do not need the left side navigation you can re-use the page layout.

Small Calendar for SharePoint 2010 & 2013

First off I would like to apologize for the lack of posts. I have been really busy with my new role as the UX Design lead within Slalom Consulting Boston. I will share more about that in another post. In a previous post Create Really Small Calendar I showcased how to do this for SharePoint 2007. However the 2010 and 2013 calendar views have changed and therefore we cannot use the same method or CSS as 2007.SharePoint 2010 Small Calendar:
SharePoint 2013 Small Calendar:
See video below for a video walk through on how to create a small calendar for SharePoint 2010 and & SharePoint 2013 with just CSS.Per the video above here is the code that I referenced:2010 CSS link reference in Master Page:
<SharePoint:CssRegistration name="<% $SPUrl:~sitecollection/Style Library/smallcalendar.css %>" After="corev4.css" runat="server"/>2010 CSS:
/**** Small Calendar ***/
.ms-acal-item{height: 10px !important;}
.ms-acal-sdiv,
.ms-acal-mdiv,
.ms-…