WebTemp.xml
展開した Windows SharePoint Services 内の各フロントエンド Web サーバーの Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\1033\XML フォルダ内には、少なくとも 1 つの WEBTEMP.XML ファイルがあります。WEBTEMP.XML ファイルには、[テンプレートの選択] ページでサイトのインスタンス化のために選択可能なサイト定義が含まれています。
警告
Windows SharePoint Services と共にインストールされた元の WEBTEMP.XML ファイルを変更するのではなく、既存のサイト定義をコピーし、サイトをインスタンス化するためのユーザー構成を定義する WEBTEMP*.XML を追加して、カスタム サイト定義を作成する必要があります。最初にインストールされたファイルに加えた変更は、Windows SharePoint Services の更新または Service Pack をインストールしたり、次のバージョンの製品にアップグレードした場合に、上書きされる可能性があります。推奨されるベスト プラクティスの詳細については、「[方法] カスタム サイト定義および構成を作成する」を参照してください。
ファイル形式
Templates 要素では、サイトをインスタンス化するために使用する構成を指定します。各 Template 要素で、一意の ID、および \TEMPLATE\1033 ディレクトリ内のサイト定義サブフォルダに対応する名前を指定します。Template 要素には、任意の数の Configuration サブ要素を含めることができます。その各サブ要素では、サイト定義のリストおよびモジュールを指定する Onet.xml ファイル内の構成の ID に対応する一意の ID を指定します。さらに、各 Configuration 要素で、タイトルと説明、および [テンプレートの選択] ページに表示されるプレビュー イメージへの仮想パスを指定します。Hidden を TRUE に設定すると、構成をユーザー インターフェイス (UI) に表示しないようにすることができます。次の例で、WEBTEMP.XML ファイルの形式を示します。
<Templates
xmlns:ows="Microsoft SharePoint">
<Template
Name="STS"
ID="1">
<Configuration
ID="0"
Title="Team Site"
Hidden="FALSE"
ImageUrl="/_layouts/images/stsprev.png"
Description="A site for teams to quickly organize, author, and share information. It provides a document library, and lists for managing announcements, calendar items, tasks, and discussions." DisplayCategory="Collaboration" />
...
<Configuration
ID="2"
Title="Document Workspace"
Hidden="FALSE"
ImageUrl="/_layouts/images/dwsprev.png"
Description="A site for colleagues to work together on a document. It provides a document library for storing the primary document and supporting files, a tasks list for assigning to-do items, and a links list for resources related to the document." DisplayCategory="Collaboration" />
</Template>
<Template
Name="MPS"
ID="2">
<Configuration
ID="0"
Title="Basic Meeting Workspace"
Hidden="FALSE"
ImageUrl="/_layouts/images/mwsprev.png"
Description="All the basics to plan, organize and track your
meeting. This Meeting Workspace contains the following lists:
Objectives, Attendees, Agenda, and Document Library." />
...
</Template>
</Templates>
ユーザー構成の作成の詳細については、「[方法] サイト定義の構成を使用する」を参照してください。