[英]How can I output the item’s creation, published, and modified date/time in a 2sxc razor template?
I have a 2sxc content list of items which use ac# razor template.我有一个使用 ac# razor 模板的项目的 2sxc 内容列表。 For each item, I want to display:
对于每个项目,我想显示:
What c# code can I drop in the template to display these dates/times?我可以在模板中放入哪些 C# 代码来显示这些日期/时间?
An entity has a Modified property (also EntityEid and some others).一个实体有一个 Modified 属性(还有 EntityEid 和其他一些属性)。
I'm not sure about the others.我不确定其他人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.