帝国CMS灵动标签同时调用头条(1级、2级)、推荐(1级、2级)多种方法

2022-07-2316:16:37网站建设与开发Comments1,522 views字数 525阅读模式

方法1、同时调用头条(1级、2级)、推荐(1级、2级)文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/25853.html

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

也可以这样写,弹性好些。文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/25853.html

[e:loop={0,10,3,0,'isgood in (1,2) or firsttitle in(1,2)'}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>
[/e:loop]

注释:调用有头条(1级、2级)、推荐(1级、2级)用 or(或者)文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/25853.html

方法2、调用头条、推荐两个条件都具备(一篇文章既有“头条”属性、又有“推荐”属性)文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/25853.html

[e:loop={0,10,3,0,'isgood=1 and firsttitle=1'}]
<a href="<?=$bqsr['titleurl']?>" target="_blank"><?=$bqr['title']?></a> <br>
[/e:loop]
文章源自菜鸟学院-https://www.cainiaoxueyuan.com/cms/25853.html
  • 本站内容整理自互联网,仅提供信息存储空间服务,以方便学习之用。如对文章、图片、字体等版权有疑问,请在下方留言,管理员看到后,将第一时间进行处理。
  • 转载请务必保留本文链接:https://www.cainiaoxueyuan.com/cms/25853.html

Comment

匿名网友 填写信息

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

确定