要获取附加表内容,必须符合两个条件 1、指定 channelid 属性 2、指定要获得的字段 addfields='字段1,字段' 如: {dede:arclist addfields='filetype,language,softtype' row='8' channelid='3'} [field:textlink /] - [field:softtype /] {/dede:arclist} 底层模板字段: ID(同 id)]typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color]writer, source,litpic(同picname)]pubdate,senddate,mid, lastpost,scores,goodpost,badpost,notpost, description(同infos)]filename, image, imglink, fulltitle, textlink, typelink,plusurl] memberurl] templeturl] stime(pubdate 的"0000-00-00"格式) 其中: textlink = title typelink = typename imglink = image = 字段调用方法:[field:varname/] 如: {dede:arclist infolen='100'} [field:textlink/] [field:infos/] {/dede:arclist} 注:底层模板里的Field实现也是织梦标记的一种形式,因此支持使用PHP语法,Function扩展等功能。 如: 给当天发布的内容加上 (new) 标志 [field:senddate run...
内容已隐藏,请关注公众号输入验证码查看
本帖支持关注公众号查看
【无套路 无套路 无套路 扫描二维码关注公众号发送【验证码】收到验证码 在上面输入点击提交查看即可显示隐藏内容】
|