Elements (Web テンプレート)

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

Web テンプレートの WSP ファイルの elements.xml ファイルに WebTemplate 要素の親を提供します。

定義

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">

<WebTemplate ...>

</Elements>

要素と属性

以下のセクションで、属性、子要素、親要素について説明します。

属性

なし

子要素

要素

説明

WebTemplate 要素 (Web テンプレート)

Web テンプレートの構成データを提供します。

親要素

None

注釈

elements.xml ファイル自体は、WSP ファイルの一部でもあるfeature.xml ファイルの ElementManifests セクションで参照されます。 サイト コレクションに対して機能がアクティブ化されると、Web テンプレートを使用してコレクション内に新しい Web サイトを作成できるようになります。 ElementManifests セクションでは、WebTemplate 子要素で指定されていない Web テンプレートの追加の詳細を含むOnet.xml ファイルも識別します。

次に、Elements 要素の例を示します。

    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
      <WebTemplate
        AdjustHijriDays="0"
        AlternateCssUrl=""
        AlternateHeader=""
        BaseTemplateID="9"
        BaseTemplateName="BLOG"
        BaseConfigurationID="0"
        CalendarType="1"
        Collation="25"
        ContainsDefaultLists="TRUE"
        CustomizedCssFiles=""
        CustomJSUrl=""
        Description="A 4th Generation Blog Site."
        ExcludeFromOfflineClient="FALSE"
        Locale="1033"
        Name="BlogIV"
        ParserEnabled="TRUE"
        PortalName=""
        PortalUrl=""
        PresenceEnabled="TRUE"
        ProductVersion="4"
        QuickLaunchEnabled="TRUE"
        Subweb="TRUE"
        SyndicationEnabled="TRUE"
        Time24="FALSE"
        TimeZone="13"
        Title="BlogIV"
        TreeViewEnabled="FALSE"
        UIVersionConfigurationEnabled="FALSE" />
    </Elements>

関連項目