Newer Version Available
SiteDotCom
SiteDocCom extends the MetadataWithContent type and inherits its fullName and content fields.
Declarative Metadata File Suffix and Directory Location
SiteDotCom components are stored in the siteDotComSites directory of the corresponding package directory.
The file name for the metadata .xml file is [sitename]1.site-meta.xml. The file name for the site file is [sitename]1.site.
When a Lightning community is created, two sites are actually made behind the scenes: CustomSite (of type ChatterNetwork) and SiteDotComSite (of type ChatterNetworkPicasso). These are named, respectively, <community_name> and <community_name>1. The corresponding MDAPI file names are <community_name>.site-meta.xml and <community_name>1.site-meta.xml. 1 is appended to the SiteDotComSite type to keep the name unique from the corresponding CustomSite site.
Version
SiteDotCom components are available in API version 30.0 and later.
Fields
| Field | Field Type | Description |
|---|---|---|
| label | string | The name of the site you are deploying. |
| siteType | (enumeration of type string) | Required. Identifies whether the site is a ChatterNetworkPicasso site for Salesforce Communities sites, or a Siteforce site for Site.com sites. |
Declarative Metadata Sample Definition
Sample XML definitions for SiteDotCom are shown below.
1<?xml version="1.0" encoding="UTF-8"?>
2<SiteDotCom xmlns="http://soap.sforce.com/2006/04/metadata">
3 <label>testsite</label>
4 <siteType>Siteforce</siteType>
5</SiteDotCom>
6
7
8<?xml version="1.0" encoding="UTF-8"?>
9<SiteDotCom xmlns="http://soap.sforce.com/2006/04/metadata">
10 <label>testCommunity</label>
11 <siteType>ChatterNetworkPicasso</siteType>
12</SiteDotCom>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.