Reputation: 17
When we do modifications in page activate page it will be creating version.
Is it possible disable version when we activate page.
To configure the Version Manager PID com.day.cq.wcm.core.impl.VersionManagerImpl versionmanager.createVersionOnActivation (Boolean, default: false)
If we click uncheckbox, when activate page I am able to disable versions. but above one will be affect all projects.
Any other way do disable versions for specific project?
Below thing also creating versions
by programatically replicator.replicate(session, ReplicationActionType.ACTIVATE,pagepath);
Upvotes: 0
Views: 331
Reputation: 76
You can disable the version creation by enabling the "no version" flag in the replication agent settings.
Upvotes: 1
Reputation: 1856
Use a different method for replication, pass ReplicationOptions
void replicate(Session session,
ReplicationActionType type,
String path,
ReplicationOptions options)
throws ReplicationException
In ReplicationOptions, there is a way to suppress the implicit version
public void setSuppressVersions(boolean suppressVersions)
Upvotes: 0