帝国cms使用灵动标签和万能标签附加sql语句的写法

admin 2024年1月14日17:27:32帝国cms技巧评论1,213 次浏览阅读模式

内容摘要

灵动标签:[e:loop={0,10,3,0,'isgood=1','newstime DESC'}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <

文章正文

灵动标签:

[e:loop={0,10,3,0,'isgood=1','newstime DESC'}]<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>[/e:loop]'

万能标签:

[ecmsinfo]0,10,32,0,3,1,0,'isgood=1','newstime DESC'[/ecmsinfo]

标签附加sql有以下几种:

1、isgood=1       一级推荐(1-9)                isgood=0          排除推荐调用2、firsttitle=1   一级头条(1-9)                firsttitle=0      排除头条调用3、field='值'     字段等于某值4、newstime DESC  按发布时间降序排序 (最新)5、newstime ASC   按发布时间升序排序 (最旧)6、id DESC        按ID降序排序7、onclick DESC   按点击降序排序8、totaldown DESC 按下载降序排序9、plnum DESC     按评论降序排序10、diggtop DESC  按顶数降序排序11、isurl=0       排除重复文章调用12、istop=0       排除置顶调用13、ismember=0    排除会员调用(=1时为调用会员)14、ispic=1       只调用 标题图片的信息

帝国CMS 灵动标签排除头条、推荐、置顶等信息调用sql调用:select * from phome_ecms_表 where istop=0 and isgood=0 and firsttitle=0 and checked=1 order by newstime desc limit 10解释:istop=0       是排除置顶 信息isgood=0     是排除推荐 信息firsttitle=0 是排除头条 信息灵动标签简化版写法sql附加条件'istop=0 and isgood=0 and firsttitle=0 and checked=1'

代码注释

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2024年1月14日17:27:32
  • 转载请务必保留本文链接:https://anyun.org/a/webtips/ecmstips/2024/0114/18162.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: