Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Coldfusion Mura CMS 7-从迭代器获取页面的发布日期?_Coldfusion_Mura - Fatal编程技术网

Coldfusion Mura CMS 7-从迭代器获取页面的发布日期?

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

我有一个本地索引,它指向一个日历,并抓取最近的4个日历条目。我有一个迭代器迭代这些项,并通过一些自定义标记输出它们。我可以使用以下工具轻松获取当前项目的标题:

#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()
方法查看您可以使用什么。您应该能够转储该调用的结果并查看可用内容-