帝国cms灵动标签同时调用头条(1级、2级)、推荐(1级、2级)
方法1、同时调用头条(1级、2级)、推荐(1级、2级)[e:loop={0,10,3,0,'isgood=1&#160;or&#160;firsttitle=1&#160;orisgood=2&#160;or&#160;firsttitle=2'}]<a&#160;href="<?=$bqsr['titleurl']?>"&#160;target="_blank&……
方法1、同时调用头条(1级、2级)、推荐(1级、2级)
[e:loop={0,10,3,0,'isgood=1 or firsttitle=1 orisgood=2 or firsttitle=2'}]<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>[/e:loop]
注释:调用有头条(1级、2级)、推荐(1级、2级)用 or(或者)
方法2、调用头条、推荐两个条件都具备(一篇文章既有“头条”属性、又有“推荐”属性)
[e:loop={0,10,3,0,'isgood=1 and firsttitle=1'}]<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>[/e:loop]
注释:调用头条、推荐两个条件都具备用 and(并且、和)
- 上一篇
帝国cms调用会员名及投稿数量排名
1、调用会员发布文章数<table>[e:loop={'SELECT userid, username, count(username) as total from [!db.pre!]ecms_news group by username order by total desc',0,24,0}]<tr><td><?=$bqno?></td><td
- 下一篇
帝国cms专题调用标题-简介-文章数-创建时间-浏览数
专题标题:[!--pagetitle--]专题简介:[!--class.intro--]专题缩略图地址:[!--class.classimg--]专题下文章数:<?=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsztinfo where z