如何在MOSS2007中定制站点定义

站点定义基础

站点定义位于SharePoint 服务器的如下目录中:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates

站点定义由SharePoint注册,并通过WEBTEMP<NAME OF SITE DEFINITION>.XML文件生效。

WEBTEMP文件位于如下目录中:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\XML

在MOSS2007中创建定制的站点定义

步骤如下

1.复制一个现存的站点定义;

转到如下目录:

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\SiteTemplates

拷贝sts目录,并把它粘贴会同一个目录,把它重命名为SAMPLE.

转到如下目录

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033

拷贝STS目录,并把它粘贴会同一个目录,把它重命名为SAMPLE.

2.创建一个WEBTEMP XML文件用于在SharePoint 中注册站点定义。

在如下目录中创建一个名为WEBTEMPSAMPLE.XML的文件,把下列XML粘贴到文件中:

<?xml version="1.0" encoding="utf-8" ?>

<!-- _lcid="1033" _version="12.0.4017" _dal="1" -->

<!-- _LocalBinding -->

<Templates xmlns:ows="Microsoft SharePoint">

<Template Name="SAMPLE" ID="10001">

<Configuration ID="0" Title="Sample Site" Hidden="FALSE" ImageUrl="/_layouts/images/stsprev.png" Description="This sample template creates a site for teams to create, organize, and share information quickly and easily. It includes a Document Library, and basic lists such as Announcements, Calendar, Contacts, and Quick Links." DisplayCategory="Custom Site Definitions" > </Configuration>

<Configuration ID="1" Title="Sample Blank Site" Hidden="FALSE" ImageUrl="/_layouts/images/stsprev.png" Description="This sample template creates a Windows SharePoint Services-enabled Web site with a blank home page. You can use a Windows SharePoint Services-compatible Web page editor to add interactive lists or any other Windows SharePoint Services features." DisplayCategory="Custom Site Definitions" > </Configuration>

<Configuration ID="2" Title="Sample Document Workspace" Hidden="FALSE" ImageUrl="/_layouts/images/dwsprev.png" Description="This sample template creates a site for colleagues to work together on documents. It provides a document library for storing the primary document and supporting files, a Task list for assigning to-do items, and a Links list for resources related to the document." DisplayCategory="Custom Site Definitions" > </Configuration>

</Template>

</Templates>

3.将IIS复位

4.创建一个基于自定义站点定义的站点。

你可能感兴趣的:(windows,Web,xml,Microsoft,SharePoint)