婷婷综合国产,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
主站蜘蛛池模板: 南丰县| 始兴县| 木里| 绍兴县| 翁源县| 开封县| 高青县| 南涧| 新化县| 思南县| 巴塘县| 资阳市| 色达县| 栾城县| 曲麻莱县| 永新县| 漳州市| 大悟县| 恭城| 威信县| 武平县| 石楼县| 靖江市| 泰宁县| 吉林市| 安义县| 乌兰察布市| 南溪县| 永泰县| 镇平县| 黑山县| 顺平县| 龙川县| 于田县| 吴江市| 双桥区| 海伦市| 屏边| 微山县| 永新县| 唐河县|