My Profile Page- Hide User-Added Quick Launch Links

It seems pretty strange to me that the headings and links added by a My Site owner to their private My Home quick launch menu would show up on their public My Profile page (person.aspx). Other users are going to see this page when looking up a fellow user and since this “content” has not undergone any form of content approval then there could be some nasty surprises.

To avoid this I thought the simple thing to do would be to edit the Person.aspx page located in the hive directory at : C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates\SPSMSITEHOST and remove the placeholder for the Left Navigation Bar. Unfortunately it wasn’t that simple. There is no placeholder for the Left Navigation Bar in person.aspx. So I opened the page using SharePoint designer and examined it in split view. Now the placeholder was visible in the design panel but there was no matching reference in the code. So I clicked on the placeholder, and selected Create Custom Contents which added the placeholder to the page code.

Now you might object that by doing this I am unghosting the page which isn’t ideal and I say to you; just don’t save the page, just copy the contents, backup your person.aspx and paste it into the hive version. Now, simply remove the guts of the PlaceHolderLeftNavBar content place holder and your done.

<asp:Content id=”Content9″ runat=”server” contentplaceholderid=”PlaceHolderLeftNavBar”>
</asp:Content>

No more unscrupulous links for all to see.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s