Kotireddy Naru
Kotireddy Naru

Reputation: 17

how to activate page with out create version in author instance

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

Upvotes: 0

Views: 331

Answers (2)

Himanshu Pathak
Himanshu Pathak

Reputation: 76

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

Upvotes: 1

Sandeep Kumar
Sandeep Kumar

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

Related Questions