この文章は Salesforce 機械翻訳システムを使用して翻訳されました。詳細はこちらをご参照ください。
英語に切り替える

CommunityTemplateDefinition

コミュニティテンプレートの定義を表します。Metadata メタデータ型を拡張し、その fullName 項目を継承します。

ファイルのサフィックスおよびディレクトリの場所

CommunityTemplateDefinition コンポーネントのサフィックスは .communityTemplateDefinition で、communityTemplateDefinitions フォルダに保存されます。

バージョン

CommunityTemplateDefinition コンポーネントは、API バージョン 38.0 以降で使用できます。

特別なアクセスルール

このオブジェクトは、組織で Salesforce Communities が有効になっている場合にのみ使用できます。

項目

項目名 データ型 説明
baseTemplate CommunityBaseTemplate (string 型の列挙) この CommunityTemplateDefinition が API バージョン 41.0 以降で作成されたことを示します。有効な値は CommunityApp です。この項目は API 41.0 以降で使用できます。
bundlesInfo CommunityTemplate​BundleInfo [ ] 必須。この CommunityTemplateDefinition のプレビュー画像および機能の説明のリスト。
category CommunityTemplate​Category (string 型の列挙) 必須。この CommunityTemplateDefinition の最適化された使用事例。有効な値は、次のとおりです。
  • IT
  • Marketing
  • Sales
  • Service
defaultBrandingSet string コミュニティビルダーの [ブランド] パネルで定義される、この CommunityTemplateDefinition に関連付けられた一連のブランドプロパティ。API バージョン 40.0 以降で使用できます。
defaultThemeDefinition string 必須。この CommunityTemplateDefinition の割り当てられたテーマ定義。
description string この CommunityTemplateDefinition の説明テキスト (省略可能)。
enableExtendedCleanupUp​OnDelete boolean この CommunityTemplateDefinition を削除すると、直接的または間接的に参照される他のオブジェクト (CommunityThemeDefinitionFlexipage、または StaticResource など) が自動的に削除されます。
masterLabel string 必須。[設定] に表示されるこの CommunityTemplateDefinition の表示ラベル。
navigationLinkSet NavigationLinkSet この CommunityTemplateDefinition に関連付けられたナビゲーションメニュー。ナビゲーションメニューは、ユーザがクリックするとコミュニティの他の��分に移動できる項目で構成されます。API バージョン 40.0 以降で使用できます。
pageSetting CommunityTemplate​PageSetting [ ] 必須。この CommunityTemplateDefinition の FlexiPage のリスト。

CommunityTemplate​BundleInfo

項目名 データ型 説明
description string その CommunityTemplateBundleInfo の説明テキスト (省略可能)。
image string typePreviewImage の場合にのみ必須です。それ以外の場合、この項目は省略可能です。この CommunityTemplateDefinition のプレビュー画像。
order int 必須。その CommunityTemplateDefinition 内の同じ型の他の要素に対するこの CommunityTemplateBundleInfo の位置を指定する整数。1 は最初の位置、3 は PreviewImage 型の最大位置、4 は Highlight 型の最大位置です。
title string 必須。コードで使用されるこの CommunityTemplateBundleInfo のタイトル。
type CommunityTemplate​BundleInfoType (string 型の列挙) 必須。エクスポートに含まれるテンプレートに関する説明情報を格納します (現在は、機能およびプレビュー画像のみ)。コミュニティ作成ウィザードの UI は、テンプレートによって強化されます。有効な値は、次のとおりです。
  • Highlight — この CommunityTemplateBundleInfo は、強調表示機能として使用されます。
  • PreviewImage — この CommunityTemplateBundleInfo は、プレビュー画像として使用されます。

CommunityTemplate​PageSetting

項目名 データ型 説明
page string 必須。この CommunityTemplateDefinition の FlexiPage のリスト。
themeLayout string 必須。テーマレイアウトの FlexiPage の名前。

この項目は、API バージョン 39.0 以降で使用できます。

宣言的なメタデータの定義のサンプル

CommunityTemplateDefinition コンポーネントの例を次に示します。

1<?xml version="1.0" encoding="UTF-8"?>
2<CommunityTemplateDefinition xmlns="http://soap.sforce.com/2006/04/metadata">
3    <bundlesInfo>
4        <description>ax</description>
5        <order>1</order>
6        <title>ax</title>
7        <type>Highlight</type>
8    </bundlesInfo>
9    <bundlesInfo>
10        <image>siteAsset_82806ab739204fa99e657012c181c87c</image>
11        <order>1</order>
12        <title>siteAsset_82806ab739204fa99e657012c181c87c</title>
13        <type>PreviewImage</type>
14    </bundlesInfo>
15    <category>Sales</category>
16    <defaultBrandingSet>ax</defaultBrandingSet>
17    <defaultThemeDefinition>ax</defaultThemeDefinition>
18    <description>ax</description>
19    <enableExtendedCleanUpOnDelete>true</enableExtendedCleanUpOnDelete>
20    <masterLabel>ax</masterLabel>
21    <navigationLinkSet>
22        <navigationMenuItem>
23            <label>Topics</label>
24            <position>1</position>
25            <publiclyAvailable>true</publiclyAvailable>
26            <target>ShowMoreTopics</target>
27            <type>NavigationalTopic</type>
28        </navigationMenuItem>
29    </navigationLinkSet>
30    <pageSetting>
31        <page>ax_Report_List</page>
32        <themeLayout>ax_themeLayout_Inner</themeLayout>
33    </pageSetting>
34    <pageSetting>
35        <page>ax_Topic_Catalog</page>
36        <themeLayout>ax_themeLayout_Inner</themeLayout>
37    </pageSetting>
38    <pageSetting>
39        <page>ax_Check_Password</page>
40        <themeLayout>ax_themeLayout_Login</themeLayout>
41    </pageSetting>
42    <pageSetting>
43        <page>ax_Error</page>
44        <themeLayout>ax_themeLayout_Inner</themeLayout>
45    </pageSetting>
46    <pageSetting>
47        <page>ax_User_Settings</page>
48        <themeLayout>ax_themeLayout_Inner</themeLayout>
49    </pageSetting>
50    <pageSetting>
51        <page>ax_Login</page>
52        <themeLayout>ax_themeLayout_Login</themeLayout>
53    </pageSetting>
54    <pageSetting>
55        <page>ax_Group_Detail</page>
56        <themeLayout>ax_themeLayout_Inner</themeLayout>
57    </pageSetting>
58    <pageSetting>
59        <page>ax_Sfdc_Page</page>
60        <themeLayout>ax_themeLayout_Inner</themeLayout>
61    </pageSetting>
62    <pageSetting>
63        <page>ax_Report_Related_List</page>
64        <themeLayout>ax_themeLayout_Inner</themeLayout>
65    </pageSetting>
66    <pageSetting>
67        <page>ax_Register</page>
68        <themeLayout>ax_themeLayout_Login</themeLayout>
69    </pageSetting>
70    <pageSetting>
71        <page>ax_Case_Detail</page>
72        <themeLayout>ax_themeLayout_Inner</themeLayout>
73    </pageSetting>
74    <pageSetting>
75        <page>ax_User_Profile</page>
76        <themeLayout>ax_themeLayout_Inner</themeLayout>
77    </pageSetting>
78    <pageSetting>
79        <page>ax_Dashboard_Detail</page>
80        <themeLayout>ax_themeLayout_Inner</themeLayout>
81    </pageSetting>
82    <pageSetting>
83        <page>ax_Group_List</page>
84        <themeLayout>ax_themeLayout_Inner</themeLayout>
85    </pageSetting>
86    <pageSetting>
87        <page>ax_Canvasapp_Page</page>
88        <themeLayout>ax_themeLayout_Inner</themeLayout>
89    </pageSetting>
90    <pageSetting>
91        <page>ax_Login_Error</page>
92        <themeLayout>ax_themeLayout_Login</themeLayout>
93    </pageSetting>
94    <pageSetting>
95        <page>ax_Search</page>
96        <themeLayout>ax_themeLayout_Inner</themeLayout>
97    </pageSetting>
98    <pageSetting>
99        <page>ax_Create_Record</page>
100        <themeLayout>ax_themeLayout_Inner</themeLayout>
101    </pageSetting>
102    <pageSetting>
103        <page>ax_Group_Related_List</page>
104        <themeLayout>ax_themeLayout_Inner</themeLayout>
105    </pageSetting>
106    <pageSetting>
107        <page>ax_User_List</page>
108        <themeLayout>ax_themeLayout_Inner</themeLayout>
109    </pageSetting>
110    <pageSetting>
111        <page>ax_Case_List</page>
112        <themeLayout>ax_themeLayout_Inner</themeLayout>
113    </pageSetting>
114    <pageSetting>
115        <page>ax_Dashboard_List</page>
116        <themeLayout>ax_themeLayout_Inner</themeLayout>
117    </pageSetting>
118    <pageSetting>
119        <page>ax_Question_Detail</page>
120        <themeLayout>ax_themeLayout_Inner</themeLayout>
121    </pageSetting>
122    <pageSetting>
123        <page>ax_Related_Record_List</page>
124        <themeLayout>ax_themeLayout_Inner</themeLayout>
125    </pageSetting>
126    <pageSetting>
127        <page>ax_Record_List</page>
128        <themeLayout>ax_themeLayout_Inner</themeLayout>
129    </pageSetting>
130    <pageSetting>
131        <page>ax_Forgot_Password</page>
132        <themeLayout>ax_themeLayout_Login</themeLayout>
133    </pageSetting>
134    <pageSetting>
135        <page>ax_Home</page>
136        <themeLayout>ax_themeLayout_Inner</themeLayout>
137    </pageSetting>
138    <pageSetting>
139        <page>ax_Dashboard_Related_List</page>
140        <themeLayout>ax_themeLayout_Inner</themeLayout>
141    </pageSetting>
142    <pageSetting>
143        <page>ax_User_Related_List</page>
144        <themeLayout>ax_themeLayout_Inner</themeLayout>
145    </pageSetting>
146    <pageSetting>
147        <page>ax_Case_Related_List</page>
148        <themeLayout>ax_themeLayout_Inner</themeLayout>
149    </pageSetting>
150    <pageSetting>
151        <page>ax_Topic_Detail</page>
152        <themeLayout>ax_themeLayout_Inner</themeLayout>
153    </pageSetting>
154    <pageSetting>
155        <page>ax_Messages</page>
156        <themeLayout>ax_themeLayout_Inner</themeLayout>
157    </pageSetting>
158    <pageSetting>
159        <page>ax_Report_Detail</page>
160        <themeLayout>ax_themeLayout_Inner</themeLayout>
161    </pageSetting>
162    <pageSetting>
163        <page>ax_Record_Detail</page>
164        <themeLayout>ax_themeLayout_Inner</themeLayout>
165    </pageSetting>
166    <pageSetting>
167        <page>ax_Feed_Detail</page>
168        <themeLayout>ax_themeLayout_Inner</themeLayout>
169    </pageSetting>
170    <pageSetting>
171        <page>ax_Contact_Support</page>
172        <themeLayout>ax_themeLayout_Inner</themeLayout>
173    </pageSetting>
174</CommunityTemplateDefinition>

前の定義を参照する package.xml の例を次に示します。

1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3    <types>
4        <members>MyTemplate</members>
5        <name>CommunityTemplateDefinition</name>
6    </types>
7    <version>42.0</version>
8</Package>