内容详情中(show.html) 模板中调用方法是:
{loop $字段名 $i $c}
序号: {$i}
文件原始地址:{dr_get_file($c)}
文件的下载地址:{dr_down_file($c)}
图片缩略图:{dr_thumb($c, 200, 200)}
图片缩略图带水印:{dr_thumb($c, 200, 200, 1)}
{/loop}
注意:
1、[字段名]需要换成你定义的具体字段英文名称
2、如果在list循环中调用,需要把[字段名]改成[$t.字段名]
迅睿CMS系统:https://www.xunruicms.com/
本文档原文地址:https://www.xunruicms.com/doc/692.html
来源:oschina
链接:https://my.oschina.net/finecms/blog/4467682