-
花店鲜花配送类网站织梦...
-
管理咨询培训机构类网站...
-
特色火锅餐饮加盟店网站...
-
中英双语装修建材类网站...
-
餐饮加盟培训管理类网站...
-
金融理财投资类网站织梦...
-
不秀钢材质钢管类网站织...
-
五金制品厨房用品类网站...
-
有机生物产品类网站织梦...
-
天然绿色食品类网站织梦...
-
行业资讯网类网站织梦模...
-
渔具批发牧渔类网站织梦...
-
手机APP游戏下载类网站织...
-
民宿景区旅游类网站织梦...
-
语言翻译机构类网站织梦...
-
节能环保锅炉设备类网站...
-
建筑规划施工类网站织梦...
-
装修设计类网站织梦模板...
-
建筑职业学校类网站织梦...
-
投资理财金融公司类网站...
语法:
{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)'/]