テンプレート ファイルの一覧表示

適用対象: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013

ListTemplate 要素は、特定のリストの種類の Schema.xml ファイルに含まれるリストの定義を示しています。 リスト テンプレートを使用してリストを作成することができます。

注:

リスト テンプレート機能をインストールする場合は、リスト テンプレート機能に基づくリスト インスタンス機能をインストールし、リスト インスタンスの機能のみをアクティブにします。 Microsoft SharePoint Foundation は、リスト テンプレート機能がアクティブ化されていない場合でも、指定した Web サイトに新しいリストを作成します。

指定した機能の場合、SharePoint Foundation は Features ディレクトリでファイルを List\_Template\\Schema.xml 確認しますが、別のディレクトリには Path パラメーターを指定できます。

次は、XML ファイル内の、リスト テンプレートを定義するリストの定義を表示する例です。リストの種類が [ページの作成] に表示されます。

    <?xml version="1.0" encoding="utf-8" ?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
       <ListTemplate Name="announce" Type="104" BaseType="0"
          OnQuickLaunch="TRUE" SecurityBits="11" DisplayName="Announcements"
          Description="Create an announcements list when you want a place to share news, status, and other short bits of information."
          Image="/_layouts/images/itann.gif">
       </ListTemplate>
    </Elements>

関連項目