找不到帮助文档?你想要哪方面的帮助教程?提交文档建议 >
帮助文档首页
DiYunCMS公众号

Image图片专用

更新时间:2025-06-20 加入收藏
0

内容详情中(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}


图片附件信息

{loop $字段名 $i $c}
{php $myfile=\Phpcmf\Service::C()->get_attachment($pic);}
    调用文件作者:{$myfile.author}

  附件名称:{$myfile.filename}

  附件大小:{dr_format_file_size($myfile.filesize)}

  附件扩展名:{$myfile.fileext}
{/loop}


注意:

1、[字段名]需要换成你定义的具体字段英文名称

2、如果在list循环中调用,需要把[字段名]改成[$t.字段名]


--
有帮助
--
没帮助
0
收藏
0
打赏
相关文档
Hello,欢迎来咨询~
点击在线咨询