要修改的文件:include/taglib/arclist.lib.php
267行:
if($ctag->GetAtt('cross')=='1')
改成
if($ctag->GetAtt('cross')!='0')
if($ctag->GetAtt('cross')=='1')
改成
if($ctag->GetAtt('cross')!='0')
282行:
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}' ";
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}' ";
OK,在栏目里面设置好要交叉的即可。
如果本文对你有帮助,欢迎打赏本站