【问题标题】:how to activate page with out creating version history data in aem如何激活页面而不在 aem 中创建版本历史数据
【发布时间】:2017-09-12 02:32:13
【问题描述】:

如何在不创建 versionHistory 数据 Jcr:system Level 的情况下激活页面

/jcr:system/jcr:versionStorage/b6/7f/7c/b67f7c22-678f-4696-9022-80a21665aed5/1.0

我不想在激活页面时创建像 1.0、1.1、1.2...这样的版本

How to programatically delete revisions of a page in CQ5?

【问题讨论】:

    标签: aem aem-6


    【解决方案1】:

    版本管理器中的一个选项默认设置为在激活时创建版本。但是您可以将其更改为 false,并且它不会在激活时创建它们。见https://docs.adobe.com/docs/en/aem/6-3/deploy/configuring/version-purging.html

    版本管理器

    除了通过清除工具进行显式清除之外, 可以将 Version Manager 配置为在新版本时清除旧版本 版本被创建。

    要配置 Version Manager,请为以下各项创建配置:

    PID com.day.cq.wcm.core.impl.VersionManagerImpl
    

    以下选项可用:

    versionmanager.createVersionOnActivation (Boolean, default: true)
    whether to create a version when pages are activated.
    A version is created unless the replication agent is configured to suppress creation of versions, which is honoured by the Version
    

    经理 仅当激活发生在 versionmanager.ivPaths 中包含的路径上时才会创建版本(见下文)。

    另见https://helpx.adobe.com/experience-manager/kb/DisableVersioning.html

    【讨论】:

    • 在我的工作流程中,我有两个模型 1)创建版本模型 2)通过创建版本工作流程激活页面工作流程 我正在创建像 1,0,1,,1,1,2 这样的版本这个很好.我再次使用激活页面模型来激活页面作者以发布实例。因为它将创建版本 1,0,1,,1,1,2…….. 我不需要在此模型中创建版本。在工作流程中只有一次我需要创建版本。是否有可能我需要禁用版本的特定激活页面模型。
    • 谢谢,具体项目这个配置怎么办
    • 我不想影响这个配置剩余的项目
    猜你喜欢
    • 2016-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-11-11
    • 2016-08-26
    相关资源
    最近更新 更多