主题 : 1.9版本附件如何取 |
级别: 总版主
![]() |
2# 发表于:2021-09-16 15:23:30 IP:59.211.*.*
内容详情页里面附件列表获取:
[@cms_content id=content.id] <ol style="list-style-type:decimal;font-size:12px;line-height:200%;"> <li style="border-bottom:1px dashed #dedede;margin-bottom:10px;line-height:30px;">附件列表:</li> [#if tag_bean.attr.attachments??&&tag_bean.attr.attachments.contentAttrRes??&&(tag_bean.attr.attachments.contentAttrRes)?size>0] [#list tag_bean.attr.attachments.contentAttrRes as res] <li style="list-style-type:decimal;"><a href="${res.resUrl!}">【${res.resAlias!}】</a> <span style="display:inline-block;float:right;margin-left:50px;">大小:${res.fileSize!}</span></li> [/#list] </ol>[/#if] [/@cms_content] |
||
---|---|---|---|
1
共1页