婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

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

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

POST TIME:2021-05-23 01:16

打開 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 始終為空 。(


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

  • 400-1100-266
主站蜘蛛池模板: 碌曲县| 梅河口市| 安国市| 儋州市| 庄河市| 逊克县| 常山县| 北海市| 勃利县| 黎川县| 青龙| 环江| 犍为县| 伊宁市| 新蔡县| 娄烦县| 沂源县| 乌恰县| 青川县| 江北区| 卢龙县| 无锡市| 凌源市| 黔南| 上犹县| 桐乡市| 永宁县| 汝州市| 霍林郭勒市| 雷波县| 交城县| 庄河市| 应城市| 开阳县| 荣昌县| 定南县| 家居| 湖南省| 纳雍县| 青州市| 吉木萨尔县|