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

主頁 > 網(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
主站蜘蛛池模板: 绥德县| 南郑县| 囊谦县| 商城县| 寻甸| 平顺县| 黄石市| 临湘市| 丹巴县| 信阳市| 科技| 呼图壁县| 乐业县| 洪雅县| 分宜县| 越西县| 灯塔市| 手机| 杭锦后旗| 朝阳县| 水城县| 阳泉市| 安徽省| 防城港市| 息烽县| 汕尾市| 鲜城| 衡阳市| 青海省| 聂拉木县| 清水河县| 镶黄旗| 辰溪县| 安徽省| 山丹县| 固始县| 周至县| 清苑县| 鄢陵县| 仲巴县| 新巴尔虎右旗|