dedecms用arclist调用于附加表字段的方法
I..指定channelid属性
II.指定要获得的字段addfields=字段I.,字段
如:
{dede:arclistaddfields=filetype,language,softtyperow=VIII
更多精彩就在: 51免费论文网|www.jxszl.com
channelid=III}
[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=
typelink=
imglink=
image=
字段调用方法:[field:varname/]
如:
{dede:arclistinfolen=I.00}
[field:textlink/]
[field:infos/]
{/dede:arclist}
注:底层模板里的Field实现也是织梦标记的I.种形式,因此支持使用PHP语法,Function扩展等功能.
如:给当天发布的内容加上(new)标志
[field:senddaterunphp=yes]
$ntime=time();
$oneday=IIIVI00*IIIV;
if(($ntime-@me)<$oneday)@me="
else@me="";
[/field:senddate]
原文链接:http://www.jxszl.com/biancheng/dedecms/73766.html