首页  »  站长资讯  »  网站优化

织梦channelartlist在栏目列表获取二级三级栏目

2023/03/11 12:22     创新屋收录网     已浏览360次
在织梦include/taglib/channelartlist.lib.php中 找到

if($typeid==0 || $typeid=='top')

改成

if($typeid=='reid')



{

global $cfg_Cs;



$tid = $refObj->TypeLink->TypeInfos['id'];



if(!is_array($cfg_Cs)) require_once(DEDEDATA."/cache/inc_catalog_base.inc");



if(!isset($cfg_Cs[$tid][0]) || $cfg_Cs[$tid][0]==0) $topid = $tid;



else $topid = GetTopid($cfg_Cs[$tid][0]);



$tpsql = " reid='$topid' AND ishidden<>1 ";



$order = " ORDER BY sortrank ASC";



}

elseif($typeid==0 || $typeid=='top')

列表页内容页模板调用标签