My Site Master Page Change Feature Stapling

I followed blow blog to create the stapling solution.

http://sharepointologic.blogspot.com.au/2013/04/branding-sharepoint-2013-my-sites-with.html

http://samuelnmensah.com/feature-stapling-in-sharepoint-2010/

http://samuelnmensah.com/feature-stapling-in-sharepoint-2010-part-ii/

<?xml version="1.0" encoding="utf-8"?>
<Module Name="Module1" List="116" Url="_catalogs/masterpage">
<File Path="Module1\Test.master" Url="Test.master" />
</Elements>
</module>
The URL attribute in the module node specifies where the file will be pushed on your SharePoint server.

https://www.nothingbutsharepoint.com/sites/devwiki/articles/pages/sharepoint-feature-stapling-part-1-creating-the-feature.aspx

Even though the feature activated well when creating my site (it means stapling works^^) but the master page wasn’t changed..

Why?

Because I used websitetemplate name “SPSMSITEHOST#0” not “SPSPERS#2” .

When I use Get-SPWebTemplate on power shell it shows like this :
SPSPERS#0            SharePoint Portal Server Personal Space
SPSPERS#2            Storage And Social SharePoint Portal …
SPSMSITEHOST#0       My Site Host

Actually I don’t know the differrences, so just use all of them. (Djavan said SPSPERS#0 is used in SharePoint 2010 and SPSPERS#2 is used in SharePoint 2013 in his blog)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: