修改默认的个人站点
1、将模板页加入到里面
在地址C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\MySiteLayouts中找到
LayoutFiles.xml
然后将master复制到这个文件夹下
最后在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="个人站点" />
<Property Name="MasterPageDescription" Value="个人站点默认模板" />
</File>
</Module>
2、激活Feature
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\SiteTemplates\SPSPERS\XML
在onet文件中添加如下feature
<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、设置默认master
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\SiteTemplates\SPSPERS\XML
在onet文件中设置默认模板页
<Configurations>
<Configuration ID="-1" Name="NewWeb"/>
<Configuration ID="0" Name="Default" CustomMasterUrl="_catalogs/masterpage/mysite_style_sky.master"
MasterUrl="_catalogs/masterpage/mysite_style_sky.master">