Starting from Alfresco 3.3 version onwards, the WCM deployment facilities have been enhanced to add an additional deployment target. This additional deployment receiver allows the WCM content, authored and stored in Staging Sandbox, to be deployed to local and remote Alfresco repositories (Alfresco DM) as shown in the following figure.
The DM Deployment Target receives a deployment from an Alfresco WCM authoring environment and puts the content into the workspace spaces store where it can be used to support a dynamic website. This feature provides greater flexibility in moving an approved staging content from WCM to DM (Document Management). The Alfresco Deployment Receiver is configured as a sub-system, and a new Data Dictionary folder Web Deployed is configured by default as the deployment target.
In order to set up Alfresco DM as the deployment target, you will have to edit the global properties file and then restart Alfresco.
Go to the /tomcat/shared/classes/
folder, open the alfresco-global.properties
file, and add the following two lines:
deployment.dmr.consolidate=true deployment.dmr.name=alfresco
Now restart Alfresco to activate the deployment target.
The DM Deployment Target is a target that is registered with the repository-based WCM Deployment Engine. By default, its target name is "alfresco". Although of course, this can be changed through the configuration deployment.dmr.name
.
The authoring environment for a WCM web project consists of a set of related AVM stores. The different stores have a naming convention for their store names. The consolidate flag (deployment.dmr.name=true
) says to deploy all of these related stores to the same location. If it is turned off by setting deployment.dmr.consolidate
to false, there will be a separate path for each store and content will be duplicated in the DM store.
Go to the Alfresco WCM web project and configure the DM deployment receiver. The following are the steps to configure the DM deployment receiver from Alfresco WCM Project.
Type = Live Server
Display Name = [Some Name]
Transport Name = default
Host = [localhost for local server or enter host name or IP address for external server]
Port = 50500
Username = Target Alfresco DM username
Password = Target Alfresco DM password
Target Name = alfresco
If you log in to Target Alfresco DM and go to the Company Home space, you will notice a new project folder in the Company Home | Web Deployed space as shown in the following screenshot: