- 新闻博客资讯类网站织梦...
- QQ个性空间日志资讯类网...
- 律师事务所网站织梦模板...
- 五金水槽挂架类网站织梦...
- 苗木草坪种植绿化类网站...
- 财经新闻资讯类网站织梦...
- 甲醛检测空气污染治理类...
- 生态水果蔬菜商城类网站...
- PPT素材下载类网站织梦模...
- 电脑机箱配件类网站织梦...
- 阀门制造设备展示类网站...
- 微商货源网店代理类网站...
- 中国风古典园林假山工程...
- 水性工业漆类企业网站织...
- 艺考培训类网站织梦模板...
- 金融理财投资类网站织梦...
- 五金配件加工机械设备类...
- 餐饮美食类网站织梦模板...
- 服装定制设计类网站织梦...
- 宠物兽医门诊医院类网站...
语法:
{dede:arclist typeid='' row='' col='' titlelen='' infolen=''imgwidth='' imgheight='' listtype='' orderby='' keyword=''}底层模板(InnerText){/dede:arclist}
底层模板字段:
ID(同 id),title,iscommend,color,typeid,ismake,description(同 info),writer,shorttitle,memberidpubdate,senddate,arcrank,click,litpic(同 picname),typedir,typename,arcurl(同 filename),typeurl,stime(pubdate 的"0000-00-00"格式),textlink,typelink,imglink,image
我们仔细看一下会发现,所有的能调用的字段,都是通过这段sql语句实现的。
Quote:$query = "Select arc.ID,arc.title,arc.iscommend,arc.color,arc.typeid,arc.ismake,arc.description,arc.pubdate,arc.senddate,arc.arcrank,arc.click,arc.money,arc.litpic,arc.writer,arc.shorttitle,arc.memberid,arc.vote,arc.postnum,arc.lastpost,arc.keywords,tp.typedir,tp.typename,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,st.softrank$addFieldfrom dede_archives arcleft join dede_arctype tp on arc.typeid=tp.IDleft join dede_addonsoft st on arc.ID=st.aid$addJoinwhere $orwhere $ordersql $limitsql";
这段代码和你们有什么区别,多了一个arc.keywords和st.softrank,但这样加了还不行,先讲一下keywords是怎么添加的,要在下面的代码中找到
Copy code$row['info'] = $row['description'];
然后在下面或者上面加入下面的代码,
Copy code$row['keyword'] = $row['keywords'];
同样在下面的代码中找到
Copy code$row['info'] = $row['description'];
然后在下面或者上面加入下面的代码,
Copy code$row[softrank] = $row[softrank];
这样softrank就能够在{dede:arclist}标签里面调用了,如何调用呢,很简单
[field:softrank function='GetRankStar(@me)'/]