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

站长新闻 12-05 浏览 101
在织梦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')
列表页内容页模板调用标签

标签:
本文版权声明本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,请联系本站客服,一经查实,本站将立刻删除。

热门推荐