For one of our customers’ intranet we are using a custom page to display User Profile information. By default, clicking a user’s name anywhere in SharePoint redirects you to the page Person.aspx within the “MySite Host”. This redirection is performed by a Control within the Application Page “userdisp.aspx” (_layouts/userdisp.aspx). The actual control is inserted by means of a Delegate Control. This means you’re able to replace it with whatever custom Control you want by activating a Feature with a properly declared Control element.

The Delegate Control is declared with ControlID value “ProfileRedirection” and Scope “Farm”. This means the Feature with the Control element to insert a custom Control also needs to be Farm scoped. Thus, activating this Feature will result in replacing the redirect behaviour through the entire Farm. In our case, this was not a problem but be sure to keep this in mind.

The Feature’s Control Element declaration looks something like this:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Control ControlAssembly="Customer.Intranet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=fe3fb3dd06bf9154"
           ControlClass="Customer.Intranet.ProfileRedirectControl"
           Id="ProfileRedirection"
           Sequence="1"/>
</Elements>

Geef een reactie

Jouw e-mailadres wordt niet gepubliceerd. Verplichte velden zijn gemarkeerd met *

*

De volgende HTML tags en attributen zijn toegestaan: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Categories

  • Tags

  • Blog Authors

    Amy
    anita
    Anneke
    Danny Burlage
    Dennis Vendel
    Freek Berson
    Gerard
    Iris
    Jasper Oosterveld
    Jean-Claude Chan
    Jorn
    Lab Chicks
    Luc Joziasse
    Maarten van Noort
    Maarten Wijsman
    Marlon
    Martijn Bellaard
    Natasja van Doorn
    Paul Pascha
    Peter Heuvelman
    Rick Slager
    Robert van Son
    Roeland Jimenez
    SanderZ
    Sjoerd Schudde
    Stefan van der Wiele
    Tim Heuperman
    Wortell
  • Archief