Modify the default personal site

Source: Internet
Author: User
Tags file url

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">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.