how to activate page with out create version in author instance

318 views Asked by At

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);

enter link description here

2

There are 2 answers

0
Sandeep Kumar On

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)
0
Himanshu Pathak On

You can disable the version creation by enabling the "no version" flag in the replication agent settings.