Question

I have a custom branding (masterpage that I created for my main web site) with company logo and navigation that I have used for all my site collections. I have also modified it to work with my search center as well.

Now, Is it possible for me to use the 'same' custom branding on MySites?

And I need to make sure that all my global navigation gets carried over and not interfere with any of the content place holders.

Was it helpful?

Solution

The trickiest part of this is making sure the brand gets used for all new mysites created from this point on. To do so you need to make sure your branding conforms to a key prerequisite. Is your brand packaged up in a visual studio .wsp and can it be applied to a given site collection by activating one or more features? If so then you can apply it to all future mysites using a technique called Feature Stapling.

To use this technique, first create a new feature inside of your sharepoint solution. It should be a Farm scoped feature. Call it something like "MySiteStaperFeature"

Then in your solution create a new empty sharepoint Elements file called something like "MySiteStapler". In the Elements.xml file for this element put the following code

<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <FeatureSiteTemplateAssociation Id="<Your Branding Feature ID>" TemplateName="SPSPERS#0"/> 
</Elements>

This code will tell sharepoint that whenever a new site is created using the mysite template (SPSERS#0) that sharepoint should automatically activate the feature with corresponding ID. If you have to activate multiple features for your brand, create additional FeatureSiteTemplateAssociation elements, in the order that the features need to be activated.

Add this new SharePoint element to your MySiteStaperFeature. Then you can deploy your solution, activate the farm feature, and your branding will be applied to any new mysites.

OTHER TIPS

If you have created the branding in a Feature within Visual Studio, you can use PowerShell to iterate all the site collections in your MySite host and activate the feature in each site collection.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top