Customize My Profile Tabs for SharePoint 2010
2012-10-26 09:57
489 查看
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
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
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.
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.
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
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
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.
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.
相关文章推荐
- Enable Version Control for SharePoint 2010 Document Libraries
- How to hide my site and my document link in the right-top corner of sharepoint 2010
- Installing Office Web Apps for SharePoint 2010
- SharePoint 2010: Create a Custom Page Layout for a Publishing Site using SharePoint Designer
- How to tune SharePoint 2010 Server for better performance?
- Configuring My Site in SharePoint 2010
- [转]Content targeting for anonymous users with SharePoint Server 2010(给匿名用户配置外部配置文件)
- Microsoft SharePoint 2010:Customizing My Site--自定义我的网站--第一章节--MS SP2010我的网站有什么新的内容
- Use Microsoft SharePoint Designer 2010 to customize the list view 3---Parameter and Filter
- 实战部署 FAST Search Server 2010 for SharePoint
- Use Microsoft SharePoint Designer 2010 to customize the list view 1
- VS 2010 for SharePoint
- SharePoint 2010 – The form cannot be rendered. This may be due to a misconfiguration of the Microsoft SharePoint Server State Service. For more inform
- Turn off Mobile View for SharePoint 2010 and SharePoint 2013
- webservice for sharepoint 2010
- Configuring the User Profile Service in SharePoint 2010
- Sharepoint2010 系列:在Infopath 2010中调用Web Service(SharePoint Server 2010 -“User Profile Service We)
- Use Microsoft SharePoint Designer 2010 to customize the list view 2
- How to remove the ribbon tabs in list forms in SharePoint 2010
- Enable SharePoint Designer for Project Web App PWA 2010