主题 : jeecms1.6标准版前台如何获取内容详情页自定义字段 |
级别: 管理员
![]() |
2# 发表于:2021-05-17 14:27:33 IP:59.202.*.*
例: [@cms_content_list]
[list tag_list a ] 自定义 : ${(a.attr.自定义字段标签名称. 自定义取值(路径:url ,名称 :name等 ,根据您需要看标签文档操作) )!} [/list] [/@cms_content_list] |
||
---|---|---|---|
级别: 管理员
![]() |
5# 发表于:2021-05-17 15:20:58 IP:59.202.*.*
附件:
[@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.fileUpload_JeDD1p.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] |
||
---|---|---|---|
级别: 管理员
![]() |
9# 发表于:2021-05-17 15:51:52 IP:59.202.*.*
${(a.attr.字段标签.resUrl)!} a是您的list标签后缀, resUrl 资源路径 ,您写写试试
|
||
---|---|---|---|
1
共1页