帝国CMS二次开发按tags分类调用标签教程
帝国CMS按tags分类调用标签代码<?$tagql=$empire->query("selecttagid,tagname,pathfrom{$dbtbpre}enewstagswherecidin(1,2,3,4,5,6,7)andisgood=1orderbycidasclimit20");$bqno=1;while($r=$empire->fetch($tagql))……
帝国CMS按tags分类调用标签代码
<?$tagql=$empire->query("selecttagid,tagname,pathfrom{$dbtbpre}enewstagswherecidin(1,2,3,4,5,6,7)andisgood=1orderbycidasclimit20");$bqno=1;while($r=$empire->fetch($tagql)){?><li><ahref="/tag/<?=$r[path]?>.html"target="_blank"><?=$r[tagname]?></a></li><?php$bqno++;}?>
in(1,2,3,4,5,6,7)为指定的tags分类ID
limit20调用20条信息