Hippo CMS创建文件夹的日期

问题描述 投票:0回答:2

我一直试图在hippo cms上获取文件夹的创建日期。到目前为止,我一直无法这样做。使用调试器我得到一些属性:

enter image description here

我还看了一下cms控制台,看看是否有与日期相关的属性:

enter image description here

我的问题是,如果这样的属性甚至存在,或者可以将cms配置为每次创建文件夹时存储该日期。感谢您提供的任何见解。

date directory jcr hippocms
2个回答
0
投票

此属性不存在。要添加此项,您必须在文件夹类型上创建自定义属性,并添加自定义工作流以进行设置。请注意,您不能简单地添加mixin hippostdpubwf:document。这将添加相关属性,但文件夹工作流程不支持它,并且还添加与文件夹无关的属性。

有关创建工作流程的帮助,请参阅:https://www.onehippo.org/library/concepts/workflow/workflow.html


0
投票

对于文档,hippostdpubwf:creationDate设置为now,如/ hippo中的映射中所定义:configuration / hippo:queries / hippo:templates / new-document / hippostd:modify。

也许如果你为new-folder做类似的工作只能配置。

此致,Jeroen

© www.soinside.com 2019 - 2024. All rights reserved.