Child node inheriting replication properties from replicated template. How to stop this from happening?
Hi Team,
I have parent node '/content/example/en_us' which has jcr:primaryType of value 'cq:Page'. It is published using Please read the update at the end of this question.
replicator.replicate(session, ReplicationActionType.ACTIVATE, paths, replicationOptions);
Here are the replication options:
replicationOptions.setSuppressVersions(true);
replicationOptions.setSynchronous(true);
replicationOptions.setSuppressStatusUpdate(false);
After replication when I create node as '/content/example/en_us/sample' with jcr:primaryType of either 'cq:PageContent' or 'cq:Page' it inherits the replication properties cq:lastReplicatedBy,cq:lastReplicationAction, cq:lastReplicated from parent. The incorrect behavior is this node '/content/example/en_us/sample' is not even replicated but just gets the properties from parent.
How to stop inheriting the replication properties from parent node? I do want other properties to be inherited.
Any help is appreciated.
AEM version 6.5.15
UPDATE:
I’ve observed that the behavior in question is NOT a result of publishing the node located at ‘/content/example/en_us’. Rather, it’s due to the publication of the template that is used to create child pages.
In other words, when a template is published programmatically, and the child pages created using this template then the children inherit its replication properties. How to overcome this?
Thanks