When a site is created, most of end-users want to see something in the page instead of a blank page, so you need this plugin to deploy some "default" contents, such as Banner, Footer, Navigation, Breadcrumb.

There are two main cases to use:

* The site is created only one time when the database is cleaned.

* The site is created at runtime, when a user uses the core features of the GateIn portal.

To use the plugin in the component configuration, you must use the following target-component:
{code:xml}<target-component>org.exoplatform.services.deployment.WCMContentInitializerService</target-component>{code}

The configuration is applied mainly in _packaging/ecmdemo/webapp/src/main/webapp/WEB-INF/conf/sample-portal/wcm/deployment/acme-deployment-configuration.xml_.

*Sample configuration*:
{code:xml}<external-component-plugins>
    <target-component>org.exoplatform.services.deployment.WCMContentInitializerService</target-component>
    <component-plugin>
        <name>Content Initializer Service</name>
        <set-method>addPlugin</set-method>
        <type>org.exoplatform.services.deployment.plugins.XMLDeploymentPlugin</type>
        <description>XML Deployment Plugin</description>
        <init-params>
            <object-param>
                <name>ACME Logo data</name>
                <description>Deployment Descriptor</description>
                <object type="org.exoplatform.services.deployment.DeploymentDescriptor">
                    <field name="target">
                        <object type="org.exoplatform.services.deployment.DeploymentDescriptor$Target">
                            <field name="repository">
                                <string>repository</string>
                            </field>
                            <field name="workspace">
                                <string>collaboration</string>
                            </field>
                            <field name="nodePath">
                                <string>/sites content/live/acme/web contents/site artifacts</string>
                            </field>
                        </object>
                    </field>
                    <field name="sourcePath">
                        <string>war:/conf/sample-portal/wcm/artifacts/site-resources/acme/Logo.xml</string>
                    </field>
                    <field name="versionHistoryPath">
                        <string>war:/conf/sample-portal/wcm/artifacts/site-resources/acme/Logo_versionHistory.zip
                        </string>
                    </field>
                    <field name="cleanupPublication">
                        <boolean>true</boolean>
                    </field>
                </object>
            </object-param>
        </init-params>
    </component-plugin>
</external-component-plugins>{code}

In which:
* *name*: _Content Initializer Service_
* *set-method*: _addPlugin_
* *type*: _org.exoplatform.services.deployment.plugins.XMLDeploymentPlugin_

* *Object type*: _org.exoplatform.services.deployment.DeploymentDescriptor_
|| *Name* || *Type* || *Value* || *Description* ||
| *target* | {{Object}} | {{org.exoplatform.services.deployment.DeploymentDescriptor$Target (*)}} | The target node which will contain the imported node. |
| *sourcePath* | {{string}} | {{war:/conf/sample-portal/wcm/artifacts/site-resources/acme/Logo.xml<}} | The absolute path of the XML file. |
| *cleanupPublication* | {{boolean}} | {{false}} | Decide when the publication lifecycle is cleaned up in the target folder after importing the data.{example}{example}true: allow{example}{example}false:not allow |
| *versionHistoryPath* | {{string}} | {{war:/conf/sample-portal/wcm/artifacts/site-resources/acme/Logo_versionHistory.zip<}} | The absolute path of the version history file. |

* *Object type*: _org.exoplatform.services.deployment.DeploymentDescriptor$Target_
|| *Field* || *Type* || *Value* || *Description* ||
| *repository* | {{string}} | {{repository}} | The repository name of the target node. |
| *workspace* | {{string}} | {{collaboration}} | The collaboration name of the target node. |
| *nodePath* | {{string}} | {{/sites content/live/acme/web contents/site artifacts}} | The path of the target node. |