加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > CMS系统 > Dedecms > 正文

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

发布时间:2020-12-14 04:49:33 所属栏目:Dedecms 来源:网络整理
导读:在织梦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

在织梦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')

?

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

{dede:channelartlist typeid=reid}

{dede:channel type=son noself=yes}

{/dede:channel}

{/dede:channelartlist}

?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读