Question

I wan't to modify the MySite GlobalNavigation WebPart to customize the title in the top left corner. I can find there is a delegate control in the master page but I can't find this control anywhere... Thank for your help !

Était-ce utile?

La solution

Delegate Controls are activated by FEATURES. So you need to find a FEATURE that contains the definition of Delegate Cotrol.

And for you its the feature ‘My Site Navigation’ which is located in {SharePointRoot}\TEMPLATE\FEATURES\MySiteNavigation\Feature.xml.

If you observe the element file of that FEATURE, you will see that the top navigation corresponds to ~/_controltemplates/mysitetopnavigation.ascx located in CONTROLTEMPLATES directory of SharePoint root.

The beauty of delegate controls (plenty of examples if you type "Sharepoint delegate control" in search engine) is that you can OTB control with your own control on activation of your custom FEATURE. This excellent series talk about customizing the top nav in my sites. Check it out: http://weshackett.com/2011/02/sp2010-mysites-part-three-branding/

Licencié sous: CC-BY-SA avec attribution
Non affilié à sharepoint.stackexchange
scroll top