"景先生毕设|www.jxszl.com

dedecms用arclist调用于附加表字段的方法

2022-10-29 16:09编辑: www.jxszl.com景先生毕设
要获取附加表内容,必须符合两个条件

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=title
typelink=typename
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="(new)";
else@me="";
[/field:senddate]



原文链接:http://www.jxszl.com/biancheng/dedecms/73766.html