雷火电竞-中国电竞赛事及体育赛事平台

歡迎來(lái)到入門(mén)教程網(wǎng)!

dedecms

當(dāng)前位置:主頁(yè) > CMS教程 > dedecms >

織夢(mèng)dedecms用欄目交叉時(shí)arclist標(biāo)簽不能調(diào)出相關(guān)文章

來(lái)源:本站原創(chuàng)|時(shí)間:2021-08-05|欄目:dedecms|點(diǎn)擊:

打開(kāi) 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ù)庫(kù)可以看出
當(dāng)欄目為不交叉時(shí)cross的值為0
當(dāng)欄目為自動(dòng)獲取同名欄目時(shí)cross的值為1
當(dāng)欄目為手動(dòng)指定ID時(shí)cross的值為2
顯然
if($ctag->GetAtt('cross')=='1')
是錯(cuò)的,在手動(dòng)指定ID時(shí)$CrossID 始終為空

上一篇:如何讓網(wǎng)站優(yōu)化持續(xù)穩(wěn)定

欄    目:dedecms

下一篇:織夢(mèng)dedecms中英文模版當(dāng)前位置的修改方法

本文標(biāo)題:織夢(mèng)dedecms用欄目交叉時(shí)arclist標(biāo)簽不能調(diào)出相關(guān)文章

本文地址:http://www.jygsgssxh.com/a1/dedecms/16939.html

更多dedecms

您可能感興趣的文章

閱讀排行

本欄相關(guān)

隨機(jī)閱讀

網(wǎng)頁(yè)制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語(yǔ)言數(shù)據(jù)庫(kù)服務(wù)器

如果侵犯了您的權(quán)利,請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有