帝国cms调用栏目tags标签 按栏目或表调用tags
网上找的参考修改特此分享
演示效果:https://www.fangzhanba.com/moban/diguo/
[e:loop={"select DISTINCT([!db.pre!]enewstags.tagname),[!db.pre!]enewstags.tagid,[!db.pre!]enewstags.num from [!db.pre!]enewstags inner join [!db.pre!]enewstagsdata on [!db.pre!]enewstags.tagid = [!db.pre!]enewstagsdata.tagid where [!db.pre!]enewstagsdata.classid = '$GLOBALS[navclassid]' order by [!db.pre!]enewstags.num DESC limit 30",0,24}] <a href='/e/tags/?tagid=<?=$bqr['tagid']?>' title='<?=$bqr['num']?>个' target='_blank'><?=$bqr['tagname']?>(<?=$bqr['num']?>)</a> [/e:loop] |