My translation tool creates new language copies as live copies since we send live copies for translation. I am looking for a way to detach live relationship through code. Any suggestions will help.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @aemg12 ,
You can use the below method of LiveRelationshipManager to detach relationship as detach(Resource resource, boolean autoSave) is Deprecated.
endRelationship(Resource resource, boolean autoSave)
Ends the LiveRelationship of the given Resource.
The Resource has to be part of a LiveCopy As indicated by hasLiveRelationship method
A detached Resource is treated as any other Resource that is created in the LiveCopy tree.
NOTE: this means especially that any history of this relation is gone
@aemg12 ,
The best practice is always sent the english language copy (not the live copy) for translation. You have to create your blueprint accordingly.
Anyway, Yes we can detach the live copy through programatically, in your site root page, "jcr:content/cq:LiveSyncConfig" in this node needs to add "cq:excludedPath" property with all the detach page paths.
Thanks,
Venkat
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi @aemg12 ,
You can use the below method of LiveRelationshipManager to detach relationship as detach(Resource resource, boolean autoSave) is Deprecated.
endRelationship(Resource resource, boolean autoSave)
Ends the LiveRelationship of the given Resource.
The Resource has to be part of a LiveCopy As indicated by hasLiveRelationship method
A detached Resource is treated as any other Resource that is created in the LiveCopy tree.
NOTE: this means especially that any history of this relation is gone
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies