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.
本文详细介绍了如何在个人资料页面中管理、编辑和删除标签。默认标签包括概述、组织、内容、标签和笔记、同事、会员资格等。通过导航到指定链接,可以轻松地对这些标签进行操作。此外,还可以自定义标签的外观和位置,通过修改person.aspx页面实现。文章还深入探讨了标签的实际实现方式,涉及到SharePoint AspMenu控件和其CSS样式,确保用户在切换标签时保持页面的一致性和流畅性。

被折叠的 条评论
为什么被折叠?



