As part of one of the requirements in our site, we need the published date of an asset to be present in the Publish environment. Is there a way to permanently disable ReplicationPropertiesFilterFactory?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi
cq:lastReplicationAction, cq:lastreplicated and cq:lastReplicatedBy properties are not carried over to publish by design. In order to carry over these properties disable the below component in author instance com.day.cq.replication.impl.ReplicationPropertiesFilterFactory
http://localhost:4502/system/console/components
Views
Replies
Total Likes
Hi
cq:lastReplicationAction, cq:lastreplicated and cq:lastReplicatedBy properties are not carried over to publish by design. In order to carry over these properties disable the below component in author instance com.day.cq.replication.impl.ReplicationPropertiesFilterFactory
http://localhost:4502/system/console/components
Views
Replies
Total Likes
Excellent response!
Views
Replies
Total Likes
For the publish date, you could use the more recent of jcr:created or jcr:lastModified on recipient server.
Views
Replies
Total Likes
Hi Arun,
We have done this.However, this component gets enabled whenever the server restarts. Is there a way to make it not getting enabled on Server restart?
Views
Replies
Total Likes
Hi,
Could you please try below to stop component permanently.
add component is below config From OSGi config manager
OR
Define a sling:OsgiConfig
/apps/mysite/config/com.adobe.acs.commons.util.impl.ComponentDisabler.xml
<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="sling:OsgiConfig" components="[pid1,pid2]" />
components
is an array of the OSGi component PIDs to disable.
Thanks
Arun
That works.Thanks a lot, Arun.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies