帝国cms灵动标签调用tags

时间:2022-01-23 08:21:38

这个语法用来调用[指定分类][指定条件]的所有tags

[e:loop={"select * from [!db.pre!]enewstags order by num desc limit 10",0,24,0}]
<li><a href="<?=$public_r[newsurl]?>e/tags/?tagid=<?=$bqr['tagid']?>" target="_blank"><?=$bqr['tagname']?></a></li>
[/e:loop]

或是你自己根据tagid来显示

[e:loop={"select * from [!db.pre!]enewstags order by tagid",0,24,0}]
<li><a href="<?=$public_r[newsurl]?>e/tags/?tagid=<?=$bqr['tagid']?>" target="_blank"><?=$bqr['tagname']?></a></li>
[/e:loop]