欧美日韩精品在线,国内精品久久久久久久久,一级毛片恃级毛片直播,清纯唯美亚洲综合欧美色

織夢(mèng)導(dǎo)航不顯示外部鏈接欄目,修改channelartlist標(biāo)簽方法_DedeCms教程

編輯Tag賺U幣
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
織夢(mèng)導(dǎo)航不顯示外部鏈接欄目,修改channelartlist標(biāo)簽方法
在文件 include/taglib/channelartlist.lib.php第67行左右,
 
查找:
  1. <span style="font-size:14px;"><span style="font-family:tahoma,geneva,sans-serif;">1 $tpsql = " reid=0 AND ispart<>2 AND ishidden<>1 AND channeltype>0 "
  2. </span></span> 
修改為:
  1. <span style="font-size:14px;"><span style="font-family:tahoma,geneva,sans-serif;">1 $tpsql = " reid=0 AND ishidden<>1 AND channeltype>0 ";  
  2. </span></span>  
即刪除 AND ispart<>2
 
完成。
 
欄目為外部鏈接時(shí)默認(rèn)使用新窗口打開,其它欄目使用當(dāng)前窗口打開的修改方法。
 
查找:
  1. <span style="font-size:14px;"><span style="font-family:tahoma,geneva,sans-serif;">1 $pv->Fields['typeurl'] = GetOneTypeUrlA($typeids[$i]); 
  2. </span></span> 
代碼的下一行增加:
  1. <span style="font-size:14px;"><span style="font-family:tahoma,geneva,sans-serif;">1 if($typeids[$i]['ispart'] == 2){   
  2.    $pv->Fields['typeurl'] = $pv->Fields['typeurl'].'" target="_blank'; 
  3.    } 
  4. </span></span> 
  5.   
 

這樣,在輸出的鏈接后就自動(dòng)增加了新窗口打開的代碼了。 僅供大家參考學(xué)習(xí)哦~

查看更多 DedeCms教程  織夢(mèng)模板  織夢(mèng)DedeCms視頻教程  織夢(mèng)dedecms專題

來(lái)源:模板無(wú)憂//所屬分類:DedeCms教程/更新時(shí)間:2020-06-08
相關(guān)DedeCms教程

DedeCms教程教程Rss訂閱Cms教程搜索