帝国cms灵动标签调用tags

这个语法用来调用[指定分类][指定条件]的所有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]

 

你可能感兴趣的:(cms)