Skip to main content
Level 2
Sep 13, 2017 5:04 PM UTC
Solved

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
joerghoh
joerghohAccepted solution
Adobe Employee
Sep 13, 2017 8:46 PM UTC

As eduby mentioned, use an instance of the class ReplicationOptions[1] as parameter to Replicator.replicate(...), and call

setSuppressVersions(true).

Jörg

[1] ReplicationOptions ("The Adobe AEM Quickstart and Web Application.")

14 replies

Level 2
Sep 21, 2017 6:38 AM UTC

thank you Abhishek,Jörg Hoh ,It's working fine

Translate
Adobe Employee
Sep 22, 2017 7:24 AM UTC

Just curious, but why do you want to disable versions for this project?

Translate
Level 2
Sep 23, 2017 4:49 PM UTC

already i created version's  by using Create version Model in My workflow.

Translate
Adobe Employee
Sep 25, 2017 7:50 AM UTC

ok, good you got it working. But my question was more around the business need for such a change, are you creating so many versions that it is becoming an issue? I often feel it is better not to keep on adding custom code unless there is a real need. If you are already doing version purging, perhaps that is enough.

Translate