好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 網站建設 > 建站知識 > 織夢dedecms用欄目交叉時arclist標簽不能調出相關文

織夢dedecms用欄目交叉時arclist標簽不能調出相關文

POST TIME:2017-11-13 00:10

打開include/taglib/arclist.lib.php文件
找到
if($ctag->GetAtt('cross')=='1')
修改為
if($ctag->GetAtt('cross')!='0')
找到
if($arr['crossid']!='') $selquery = "Select id,topid From `dede_arctype` where id in('{$arr['crossid']}') And id<>'{$typeid}' And topid<>'{$typeid}' ";
修改為
if($arr['crossid']!='') $selquery = "Select id,topid From `dede_arctype` where id in({$arr['crossid']}) And id<>'{$typeid}' And topid<>'{$typeid}' ";

分析:
從數據庫可以看出
當欄目為不交叉時cross的值為0
當欄目為自動獲取同名欄目時cross的值為1
當欄目為手動指定ID時cross的值為2
顯然
if($ctag->GetAtt('cross')=='1')
是錯的,在手動指定ID時$CrossID 始終為空


上一篇:織夢DedeCms實現無限數量的交叉副欄目的方法

下一篇:織夢dedecms什么時候用欄目交叉功能?如何使用?

收縮
  • 微信客服
  • 微信二維碼
  • 電話咨詢

  • 400-1100-266