Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

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.

share|improve this answer
add comment

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

share|improve this answer
    
That's the solution we have used before and it still works for SP2010 (with a minor tweak as i recall) –  Colin Apr 1 '12 at 0:18
    
What are the tweaks for this to work in 2010 though? –  user10880 Sep 22 '12 at 21:58
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.