SharePoint 2010 My Colleagues Web Part On All Sites

One of the questions we get asked all the time is can I use the Colleagues Web Part on other sites not just my MySite. So we thought to ourselves yeah shouldn’t be a problem, but guess what it wasn’t that easy.

First we had to download the Web Part from the MySite Web Part gallery as it must be saved as a .dwp file not a .webpart file or it wont work.

Next step is to upload it to the Web Part gallery of the site that you want the MyColleagues Web Part to be avaliable in.

You next need to add the tag prefix to the MasterPage to enable the Web Part to be added to the page. So we opened up the MySite MasterPage found the correct tag prefix and copied it into the new MasterPage.

Assembly Name=”Microsoft.SharePoint.Portal, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c”

Register Tagprefix=”SPSWC” Namespace=”Microsoft.SharePoint.Portal.WebControls” Assembly=”Microsoft.SharePoint.Portal, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c”

Now you should be able to add the MyColleagues Web Part to the page. That was the easy step everything seemed to work fine, added some colleagues and then the site kept locking up. So now the investigation begun on to what was causing the issue.

After some inestigation we found out that the JavaScript was going into a continous loop due to a width issue on the Web Part. The fix to stop the page locking up is the area that the Web Part is contained in needs a min-width:164px this stops the JavaScript from locking up.


One Comment Add yours

  1. This was definitely an important investigation!

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s