how to activate page with out create version in author instance | Community
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
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 13, 2017 5:53 PM UTC

replicator.replicate(session, ReplicationActionType.ACTIVATE,pagepath);

i  write this in my workflow Processs step ,but version generated.

how i need to activate only page?

Translate
smacdonald2008
Level 10
Sep 13, 2017 5:48 PM UTC

So you want to write code that is invoked from a custom WF step that actives a page without creating a version on that page?

Translate
Level 2
Sep 13, 2017 5:44 PM UTC

Thank for reply Scoot,

     I don't want create versions when page activate through Siteadmin or Activation page Workflow.

I am  Using Out-of-the-Box (OOB)  create version workflow i need to create versions.

/jcr:system/jcr:versionStorage/d1/11/0d/d1110d19-3387-47bb-a9ca-86a58978239c/1.0

Translate
smacdonald2008
Level 10
Sep 13, 2017 5:37 PM UTC

See if this Support KB helps you -- Disable versioning

Translate