咨询 | 会员中心

帝国cms灵动标签调用归档信息汇总

作者:845.net.cn 来源:互联网 发布:2022-08-25 点击:7100

1、调用所有

[e:loop={"select * from {$dbtbpre}ecms_news_doc order by id desc limit 20",0,24,0}]

、

[/e:loop]

2、当前栏目或指定栏目

[e:loop={"select * from {$dbtbpre}ecms_news_doc where classid=$GLOBALS[navclassid] order by id desc limit 20",0,24,0}]

、

[/e:loop]

注释:指定多个栏目用 classid=$GLOBALS[navclassid] 替换为 classid id (34,35,36,37))

3、调用指定信息

[e:loop={"select * from {$dbtbpre}ecms_news_doc where classid=34 and id=462 order by id desc limit 20",0,24,0}]

、

[/e:loop]

3、调用指定范围的信息

[e:loop={"select * from {$dbtbpre}ecms_news_doc where id<=462 and id>=262 order by id desc limit 20",0,24,0}]

、

[/e:loop]

转载:非常欢迎各位朋友分享到个人站长或者朋友圈,但转载请说明文章出处“黎青松SEO博客”。

原文地址:http://www.alitaohuo.com/CMSjiaocheng/diguojiaocheng/1910.html

actlink:0

chargetype:0

infopurview:0

pinyin:diguocmslingdongbiaoqiantiaoyongguidangxinxihuizong

readpoint:0

pitchtime:0

dividepercent:0

templateurl:资讯内容.html

filename:news/jzjy/2290

isaccept:0

articleinput:admin

digg:0

down:0

att:0

orderid:10

commentscount:0

kfid:0

biaodanon:0