1. Add the template page to it
Find in address C: \ Program Files \ Common Files \ Microsoft Shared \ Web Server Extensions \ 14 \ TEMPLATE \ FEATURES \ MySiteLayouts
LayoutFiles. xml
Then copy the master to this folder.
Add the following code to LayoutFiles. xml:
<Module Name = "MasterPages" Url = "_ catalogs/masterpage" Path = "" RootWebOnly = "TRUE">
<File Url = "mysite. master" Type = "GhostableInLibrary">
<Property Name = "Title" Value = "$ Resources: spscore, MySiteMaster_Title;"/>
<Property Name = "MasterPageDescription" Value = "$ Resources: spscore, MySiteMaster_Description;"/>
</File>
<File Url = "mysite_style_sky.master" Type = "GhostableInLibrary">
<Property Name = "Title" Value = "personal site"/>
<Property Name = "MasterPageDescription" Value = "personal site default template"/>
</File>
</Module>
2. Activate Feature
C: \ Program Files \ Common Files \ Microsoft Shared \ Web Server Extensions \ 14 \ TEMPLATE \ SiteTemplates \ SPSPERS \ XML
Add the following feature to the onet file:
<SiteFeatures>
<Feature ID = "6928B0E5-5707-46a1-AE16-D6E52522D52B"/> <! -- My Site Layouts -->
<Feature ID = "00BFEA71-1C5E-4A24-B310-BA51C3EB7A57"/> <! -- WSS Base Webparts feature -->
<! -- Custom publishing -->
<Feature ID = "f6924d36-2fa8-4f0b-b16d-06b7250180fa"/>
</SiteFeatures>
<WebFeatures>
<Feature ID = "6ADFF05C-D581-4c05-A6B9-920F15EC6FD9"/>
<Feature ID = "00BFEA71-4EA5-48D4-A4AD-7EA5C011ABE5"/>
<! -- Custom publishing -->
<Feature ID = "94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb"/>
</WebFeatures>
3. Set the default master
C: \ Program Files \ Common Files \ Microsoft Shared \ Web Server Extensions \ 14 \ TEMPLATE \ SiteTemplates \ SPSPERS \ XML
Set the default template page in the onet File
<Deployments>
<Configuration ID = "-1" Name = "NewWeb"/>
<Configuration ID = "0" Name = "Default" CustomMasterUrl = "_ catalogs/masterpage/mysite_style_sky.master"
MasterUrl = "_ catalogs/masterpage/mysite_style_sky.master">