默认是可以调用带文章的,但是很多时候,需要调用外部链接
{dede:channelartlist typeid='2'}
调用分类,只能调用 栏目而不能调用单页或是外部链接的问题
##解决方法\include\taglib\channelartlist.lib.php
//获得类别ID总数的信息
$typeids = array();
if($typeid==0 || $typeid=='top') {
$tpsql = " reid=0 AND ispart<>2 AND ishidden<>1 AND channeltype>0 ";
}
else
{
if(!preg_match('#,#', $typeid)) {
$tpsql = " reid='$typeid' AND ispart<>2 AND ishidden<>1 ";
}
else {
$tpsql = " id IN($typeid) AND ispart<>2 AND ishidden<>1 ";
}
}
如果是调用顶级栏目,导航的外部链接 就把
$tpsql = " reid=0 AND ispart<>2 AND ishidden<>1 AND channeltype>0 "
改成
$tpsql = " reid=0 AND ishidden<>1 AND channeltype>0 ";
二级导航的 把 AND ispart<>2 AND ishidden<>1 去掉就行。