織夢dedecms用欄目交叉時arclist標簽不能調出相關文
導讀:織夢文章織夢文章打開 include/taglib/arclist.lib.php 文件 找到 if($ctag-GetAtt(cross)==1) 修改為 if($ctag-dede模板安裝織夢后臺模板。
打開 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<>'{$typdede模板下載eid}' ";
修改為
if($arr['crossid']!='') $selquery = "Select id,topid From `dede_arctype` where id in({$arr['crossid']}) And id&l織夢模板修改t;>'{$typedede模板安裝id}' And topid<>'{$typeid}' ";
分析:
從數據庫可以看出
當欄目為不交叉時cross的值為0
當欄目為自動獲取同名欄目時cross的值為1
當欄目為手動指定ID時cross的值為2
顯然
if($ctag->GetAtt('cross')=='1')
是錯的,在手動指定ID時$CrossID 始終為空相關dede模板安裝織夢后臺模板。
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-18 ,文章織夢dedecms用欄目交叉時arclist標簽不能調出相關文主要講述標簽,相關文章,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_29674.html