在tags列表页获取当前tag的ID方法一:
在动态页面中使用
<?=intval($_GET['tagid'])?>在tags列表页获取当前tag的ID方法二:
1、编辑etagsindex.php,找到 $listtemp=str_replace('[!--newsnav--]',$url,$listtemp);//位置导航 ,大概在196行左右
2、在下面插入一行:
$listtemp=str_replace('[!--self.classid--]',$tagid,$listtemp);//tagid3、然后就可以在列表模板里用[!--self.classid--]调用,显示当前tag的id了……
 
           
												 
        
       
        
      
发表评论