【发布时间】: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...这样的版本
【问题讨论】:
如何在不创建 versionHistory 数据 Jcr:system Level 的情况下激活页面
/jcr:system/jcr:versionStorage/b6/7f/7c/b67f7c22-678f-4696-9022-80a21665aed5/1.0
我不想在激活页面时创建像 1.0、1.1、1.2...这样的版本
【问题讨论】:
版本管理器中的一个选项默认设置为在激活时创建版本。但是您可以将其更改为 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
【讨论】: