Coldfusion Mura CMS 7-从迭代器获取页面的发布日期?
我有一个本地索引,它指向一个日历,并抓取最近的4个日历条目。我有一个迭代器迭代这些项,并通过一些自定义标记输出它们。我可以使用以下工具轻松获取当前项目的标题:Coldfusion Mura CMS 7-从迭代器获取页面的发布日期?,coldfusion,mura,Coldfusion,Mura,我有一个本地索引,它指向一个日历,并抓取最近的4个日历条目。我有一个迭代器迭代这些项,并通过一些自定义标记输出它们。我可以使用以下工具轻松获取当前项目的标题: #item.getTitle()# 但我不确定如何获取该项目的发布日期。我如何做到这一点?您可以访问一些日期 // this would need to be explicitly set when editing the content node item.get('releaseDate'); // This is when th
#item.getTitle()#
但我不确定如何获取该项目的发布日期。我如何做到这一点?您可以访问一些日期
// this would need to be explicitly set when editing the content node
item.get('releaseDate');
// This is when the first version was initially created
item.get('created');
// This is slightly mis-labelled. It's when this actually version was saved
item.get('lastUpdate');
如果对这种情况有疑问,请使用
getAllValues()
方法查看您可以使用什么。您应该能够转储该调用的结果并查看可用内容-