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

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 !

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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/

share|improve this answer
    
Thank you very much. In MySiteTopNavigation.ascx I think the title I want to modify is defined by <div class="ms-globalnavicon"> <SPSWC:MySiteLink ID="mysitelink" runat="server"/> </div> but the TagPrefix SPSWC points on the assembly "Microsoft.SharePoint.Portal". Does it mean I can't modify the title easily ? –  cocoggu Feb 3 '12 at 15:27
    
My mistake, I just changed the SPSWC balise by a simple a balise and it's ok ;) Thank you again –  cocoggu Feb 3 '12 at 15:32
1  
Looks like that is coming from a resource file. You can replace with your own ascx file as the article describes and change to however you want it. –  Ashish Patel Feb 3 '12 at 15:57

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.