指定栏目 classid=107,或者 classid in (1,5,7,107)指定多栏目,或者mi=5指定模型
下面示范代码 :
[e:loop={"select DISTINCT({$dbtbpre}enewstags.tagname),{$dbtbpre}enewstags.tagid,{$dbtbpre}enewstags.num from {$dbtbpre}enewstags inner join {$dbtbpre}enewstagsdata on {$dbtbpre}enewstags.tagid = {$dbtbpre}enewstagsdata.tagid where {$dbtbpre}enewstagsdata.classid = 11 order by {$dbtbpre}enewstags.num DESC limit 30",0,24}] <a href="/e/tagstagid=<?=$bqr['tagid']?>" target="_blank" title="<?=$bqr[tagname]?>"><?=$bqr[tagname]?></a> [/e:loop]