Question

We've developed a custom userprofile page for a costumer. This page is supposed to be linked to by all default sharepoint buttons and links pointing to the MySite.

One example is the SharePoint SocialComment control which lists all nodes made to a page, also displaying which user posted that node. The username links to the MySite userprofile. What we want is to change that URL to point to the custom userprofile.

Is this possible or do we have to construct our own webpart, inheriting from the SocialComment control and then modify the display of users and comment?

Thank you.

Was it helpful?

Solution

The /_layouts/userdisp.aspx page which is linked from "user hyperlinks" contains the following control:

<SharePoint:DelegateControl runat="server" id="DelctlProfileRedirection" ControlId="ProfileRedirection" Scope="Farm" />

I believe that when you have MySites enabled it will load a child control that redirects a user to that user's profile on the MySite host. I am guessing you can deploy your own DelegateControl Feature which injects your own redirection control, assuming you set the sequence to be of higher priority, so thaet it overrides the MySite redirect.

OTHER TIPS

Here is an example of delegate control, that redirects request. This solution for sharepoint 2007, but it can be still applicable for 2010 version.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top