帝国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]

 

posted @ 2013-08-26 10:07  huige728  阅读(2595)  评论(0编辑  收藏  举报