3

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.

2 Answers 2

3

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.

2

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

2
  • That's the solution we have used before and it still works for SP2010 (with a minor tweak as i recall)
    – Colin
    Commented Apr 1, 2012 at 0:18
  • What are the tweaks for this to work in 2010 though?
    – user10880
    Commented Sep 22, 2012 at 21:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.