帝国cms(v7.5) 在内容模板中使用 truetime 字段

truetime 是真实发布时间, 也就是后台 mysql 执行 insert 的时间;
lastdotime 是真实更新时间, 也就是后台 mysql 执行 update 的时间;
newstime 是发布时间, 由用户自定义, 在新增信息时, 表单中自行填写;

// 在模板中直接使用 $nvainfor 数组进行调用, 比如:

<br>navinfor[id]-<?=$navinfor[id]?>
<br>navinfor[content]-<?=$navinfor[content]?>
<br>navinfor[newstime]-<?=$navinfor[newstime]?>
<br>navinfor[truetime]-<?=$navinfor[truetime]?>
<br>navinfor[lastdotime]-<?=$navinfor[lastdotime]?>

ps: 使用 $navinfor 可以访问当前记录(1条)的全部字段信息,
使用 [!--id--] 方式只能访问到部分信息
见:

image.png

http://www.phome.net/doc/manual/template/

image.png

原文见: http://www.phome.net/doc/manual/template/html/other.html#q17

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容