,在处理企业站的时候,经常发现要调用二三级栏目栏目,且需要高亮显示,具体实现方法如下。, ,1、打开 \include\taglib\channelartlist.lib.php 找到,$tpsql = " reid='$typeid' AND ispart<>2 AND ishidden<>1 ";,改成,if($type=='son'),{,$typeid = ( !empty($refObj->TypeLink->TypeInfos['id']) ? GetTopid($refObj->TypeLink->TypeInfos['id']) : 0 );,$tpsql = " reid='$typeid' AND ishidden<>1 ";,},else,{,$tpsql = " reid='$typeid' AND ispart<>2 AND ishidden<>1 ";,}, ,2、打开 \include\taglib\channel.lib.php 找到,if($type=='son' && $reid!=0 && $totalRow==0,改成,if($type=='son' && $reid!=0 && $totalRow==0 && $noself==''), ,3、后台-系统-其它选项 模板引擎禁用标签 去掉php ,调用代码如下:,至此,全部完成