婷婷综合国产,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
主站蜘蛛池模板: 红河县| 麦盖提县| 镇康县| 吴忠市| 中山市| 曲阜市| 徐闻县| 鱼台县| 西峡县| 湘阴县| 称多县| 莫力| 昌宁县| 资阳市| 合作市| 九龙城区| 衢州市| 松潘县| 石狮市| 黄大仙区| 尉犁县| 偏关县| 鹤庆县| 屏南县| 泗洪县| 屏山县| 水城县| 山西省| 大同县| 南木林县| 大姚县| 金昌市| 前郭尔| 灵石县| 佛冈县| 西林县| 沾化县| 新竹市| 大冶市| 桐柏县| 浮山县|