校园春色亚洲色图_亚洲视频分类_中文字幕精品一区二区精品_麻豆一区区三区四区产品精品蜜桃

主頁 > 網(wǎng)站建設(shè) > 建站知識 > 織夢dedecms用欄目交叉時arclist標(biāo)簽不能調(diào)出相關(guān)文

織夢dedecms用欄目交叉時arclist標(biāo)簽不能調(diào)出相關(guān)文

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}' ";

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


上一篇:織夢DedeCms實現(xiàn)無限數(shù)量的交叉副欄目的方法

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

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

  • 400-1100-266
主站蜘蛛池模板: 泊头市| 卓尼县| 西和县| 景谷| 安宁市| 保靖县| 清镇市| 金华市| 理塘县| 福清市| 淄博市| 博乐市| 南充市| 虹口区| 宽城| 文成县| 耿马| 临海市| 建阳市| 黎城县| 广南县| 汝城县| 泽普县| 治多县| 靖江市| 扎兰屯市| 丹阳市| 鹿泉市| 阿克陶县| 文化| 平乐县| 交城县| 柞水县| 开江县| 晋州市| 巩留县| 图片| 永春县| 牙克石市| 大城县| 贵溪市|