What does feature stapling do in SharePoint 2013?
Thankfully SharePoint 2013 supports feature stapling, which can be utilized to apply the branding to the site during its creation. Feature stapling is a technique that allows for a feature to be stapled to a site definition by using a support “stapler” feature that defines which features are attached to which site definition.
Can you use custom branding on SharePoint mysite?
Unfortunately Microsoft designed MySite to have a default format and does not allow custom branding to be effective for all private MySite users. In this tip we’ll go through how to overcome this issue. Before going deeply into the solution, I want to first clarify the MySite feature structure. SharePoint MySite has two site collections:
How to create a MySite template in SharePoint?
The mysite template in SharePoint 2013 is SPSPERS#2. In order to do the association between a feature and a site template, you need to add an empty element, then include a FeatureSiteTemplateAssociation to it. Right click the project in the solution explorer, select Add -> New Item, select empty element
When to use feature stapling in sandbox solutions?
The only way you can still use feature stapling is when you are stapling features to site collections and you are using sandbox solutions to deploy the site definitions and the stapled features. You can use the Add-in stapling model with tenant deployed Add-ins to implement functionality similar to feature stapling.
Why are features stapled to a site definition?
In a typical Full Trust Code (FTC) / Farm Solution scenario, out-of-the-box site definitions were modified with stapled features. Features were used to package and deploy artifacts, configurations, and branding assets associated with a SharePoint site and features were stapled to the site definition.
What is the role of stapler in SharePoint?
The role of the stapler feature is to associate the “MySiteThemeFeature” with the my site template. The mysite template in SharePoint 2013 is SPSPERS#2. In order to do the association between a feature and a site template, you need to add an empty element, then include a FeatureSiteTemplateAssociation to it.