Configuring Live Copy Synchronization
- Topics:
- Multi Site Manager
CREATED FOR:
- Admin
Perform the following tasks to control how and when live copies are synchronized with their source content.
- Decide whether existing rollout configurations meet your requirements, or whether you need to create one or more.
- Specify the rollout configurations to use for your live copies.
Installed and Custom Rollout Configurations
This section provides information about the installed rollout configurations and the synchronization actions that they use, and how to create custom configurations if necessary.
Rollout Triggers
Each rollout configuration uses a rollout trigger that causes the rollout to occur. Rollout configurations can use one of the following triggers:
-
On Rollout: The Rollout command is used on the blue print page, or the Synchronize command is used on the live copy page.
-
On Modification: The source page is modified.
-
On Activation: The source page is activated.
-
On Deactivation: The source page is deactivated.
Installed Rollout Configurations
The following table lists the rollout configurations that are installed with AEM. The table includes the trigger and synchronization actions of each rollout configuration. If the installed rollout configuration actions do not meet your requirements, you can create a rollout configuration.
contentCopy
contentDelete
referencesUpdate
productUpdate
orderChildren
Pushes the content to the live copy when the source is modified.
Use this rollout configuration sparingly as it uses the On Modification trigger.
contentCopy
contentDelete
referencesUpdate
orderChildren
Pushes content to the live copy when the blueprint page is modified, without updating references (for example, for shallow copies).
Use this rollout configuration sparingly as it uses the On Modification trigger.
contentCopy
contentDelete
orderChildren
contentCopy
contentDelete
referencesUpdate
orderChildren
markLiveRelationship
contentCopy
contentDelete
referencesUpdate
productCreateUpdate
orderChildren
contentCopy
contentDelete
referencesUpdate
orderChildren
dpsMetadataFilter
Installed Synchronization Actions
The following table lists the synchronization actions that are installed with AEM. If the installed actions do not meet your requirements, you can Create a New Synchronization Action.
Edits properties of the live copy. The editMap property determines which properties are edited and their value. The value of the editMap property must use the following format:
[property_name_1]#[current_value]#
[new_value],[property_name_2]#[current_value]#
[new_value],
... ,[property_name_n]#[current_value]#
[new_value]
The current_value
and new_value
items are regular expressions.
For example, consider the following value for editMap:
sling:resourceType#/
(contentpage|homepage)#/
mobilecontentpage,
cq:template#/contentpage#/mobilecontentpage
This value edits the properties of the live copy nodes as follows:
- The
sling:resourceType
properties that are either set tocontentpage
or tohomepage
are set tomobilecontentpage.
- The
cq:template
properties that are set tocontentpage
are set tomobilecontentpage.
On the live copy, this synchronization action updates references such as links.
It searches for paths in the live copy pages that point to a resource within the blueprint. When found, it updates the path to point to the related resource inside the live copy (instead of the blueprint). References that have targets outside the blueprint are not changed.
Configure the CQ MSM References Update Action service to specify the node types, paragraph items, and page properties to exclude.
Creates a version of the live copy.
This action must be the only synchronization action included in a rollout configuration.
Activates the live copy.
This action must be the only synchronization action included in a rollout configuration.
Deactivates the live copy.
This action must be the only synchronization action included in a rollout configuration.
Starts the workflow that is defined by the target property (for pages only) and takes the live copy as payload.
The target path is the path of the model node.
Sets the permission of several ACLs on the live copy page to read-only for a specific user group. The following ACLs are configured:
- ActionSet.ACTION_NAME_REMOVE
- ActionSet.ACTION_NAME_SET_PROPERTY
- ActionSet.ACTION_NAME_ACL_MODIFY
Use this action for pages only.
Sets the permission of several ACLs on the live copy page to read-only for a specific user group. The following ACLs are configured:
- ActionSet.ACTION_NAME_SET_PROPERTY
- ActionSet.ACTION_NAME_ACL_MODIFY
Use this action for pages only.
The PageMoveAction applies when a page has been moved in the blueprint.
The action copies rather than moves the (related) LiveCopy page from the location before the move to the location after.
The PageMoveAction does not change the LiveCopy page at the location before the move. Therefore, for consecutive RolloutConfigurations it has the status of a LiveRelationhip without Blueprint.
Configure the CQ MSM Page Move Action service to specify the node types, paragraph items, and page properties to exclude.
This action must be the only synchronization action included in a rollout configuration.
Creates or updates Product resources within a catalog. This action is meant to be used in one of the following situations:
- Generating or rolling out a catalog (or catalog section)
- A user restores synchronization inheritance for a product component.
See com.adobe.cq.commerce.pim.api.CatalogGenerator in the AEM Javadocs.
Creating a Rollout Configuration
You can create a rollout configuration when the installed rollout configurations do not meet your application requirements:
The new rollout configuration is then available to you when setting rollout configurations on a blueprint or live copy page.
Excluding Properties and Node Types From Synchronization
You can configure several OSGi services that support corresponding synchronization actions so that they do not affect specific node types and properties. For example, many properties and subnodes related to the internal functioning of AEM should not be included in a live copy. Only the content that is relevent to the user of the page should be copied.
When working with AEM, there are several methods of managing the configuration settings for such services; see Configuring OSGi for more details and the recommended practices.
The following table lists the synchronization actions for which you can specify the nodes to exclude. The table provides the names of the services to configure using the Web Console and the PID for configuring using a repository node.
The following table describes the properties that you can configure:
Excluded Nodetypes
cq.wcm.msm.action.excludednodetypes
Excluded Paragraph Items
cq.wcm.msm.action.excludedparagraphitems
Excluded Page Properties
cq.wcm.msm.action.excludedprops
Ignored Mixin NodeTypes
cq.wcm.msm.action.ignoredMixin
CQ MSM Content Update Action - Exclusions
Several properties and node types are excluded by default, these are defined in the OSGi configuration of CQ MSM Content Update Action, under Excluded Page Properties.
By default properties matching the following regular expressions are excluded (that is, not updated) on rollout:
You can change the expressions defining the exclusion list as required.
For example, if you want the page Title to be included in the changes considered for rollout, remove jcr:title
from the exclusions. For example, with the regex:
jcr:(?!(title)$).*
Configuring Synchronization for Updating References
You can configure several OSGi services that support corresponding synchronization actions related to updating references.
When working with AEM, there are several methods of managing the configuration settings for such services; see Configuring OSGi for more details and the recommended practices.
The following table lists the synchronization actions for which you can specify the reference update. The table provides the names of the services to configure using the Web Console and the PID for configuring using a repository node.
Update Reference across nested LiveCopies
cq.wcm.msm.impl.action.referencesupdate.prop_updateNested
Update Referencing Pages
cq.wcm.msm.impl.actions.pagemove.prop_referenceUpdate
true
(repository configuration) to update any references to use the original page to instead reference the LiveCopy page.Specifying the Rollout Configurations to Use
MSM enables you to specify sets of rollout configurations that are used generally, and when required you can override them for specific live copies. MSM provides several locations for specifying the rollout configurations to use. The location determines whether the configuration applies to a specific live copy.
The following list of locations where you can specify the rollout configurations to use describes how MSM determines which rollout configurations to use for a live copy:
- Live copy page properties: When a live copy page is configured to use one or more rollout configurations, MSM uses those rollout configurations.
- Blueprint page properties: When a live copy is based on a blueprint, and the live copy page is not configured with a rollout configuration, the rollout configuration that is associated with the blueprint source page is used.
- Live copy parent page properties: When neither the live copy page nor the blueprint source page are configured with a rollout configuration, the rollout configuration that applies to the live copy page’s parent page is used.
- System default: When the rollout configuration of the live copy’s parent page cannot be determined, the system default rollout configuration is used.
For example, a blueprint uses the We.Retail Reference Site as source content. A site is created from the blueprint. Each item in the following list describes a different scenario regarding the use of rollout configurations:
- None of the blueprint pages or the live copy pages are configured to use a rollout configuration. MSM uses the system default rollout configuration for all the live copy pages.
- The root page of the We.Retail Reference Site is configured with several rollout configurations. MSM uses these rollout configurations for all the live copy pages.
- The root page of the We.Retail Reference Site is configured with several rollout configurations, and the root page of the live copy site is configured with a different set of rollout configurations. MSM uses the rollout configurations that are configured on the root page of the live copy site.
Setting the Rollout Configurations for a Live Copy Page
Configure a live copy page with the rollout configurations to use when the source page is rolled out. Child pages inherit the configuration by default. When you configure the rollout configuration to use, you are overriding the configuration that the live copy page inherits from its parent.
You can also configure the rollout configurations for a live copy page when you create the live copy.
-
Use the Sites console to select the live copy page.
-
Select Properties from the toolbar.
-
Open the Live Copy tab.
The Configuration section shows the rollout configurations that the page inherits.
-
If necessary, adjust the Live Copy Inheritance flag. If checked the live copy configuration is effective on all children.
-
Clear the Inherit Rollout Configuration From Parent property, then select one or more rollout configurations from the list.
The selected rollout configurations appear below the drop-down list.
-
Click Save.
Setting the Rollout Configuration for a Blueprint Page
Configure a blueprint page with the rollout configurations to use when the blueprint page is rolled out.
The child pages of the blueprint page inherit the configuration. When you configure the rollout configuration to use, you could be overriding the configuration that the page inherits from its parent.
- Use the Sites console to select the root page of the blueprint.
- Select Properties from the toolbar.
- Open the Blueprint tab.
- Select one or more Rollout Configurations using the drop-down selector.
- Persist your updates with Save.
Setting the System Default Rollout Configuration
Specify a rollout configuration to use as the sytem default. To specify the default, configure the OSGi service:
- Day CQ WCM Live Relationship Manager
the service PID iscom.day.cq.wcm.msm.impl.LiveRelationshipManagerImpl
Configure the service using either the Web Console or a repository node.
- In the web console, the name of the property to configure is Default rollout config.
- Using a repository node, the name of the property to configure is
liverelationshipmgr.relationsconfig.default
.
Set this property value to the path of the rollout configuration to use as the system default. The default value is /libs/msm/wcm/rolloutconfigs/default
, which is the Standard Rollout Config.