方法是:找到 /include/taglib/channelartlist.lib.php,查找$attlist
将$attlist = 'typeid|0,row|20,cacheid|';
修改为:
$attlist = 'typeid|0,row|20,cacheid|,notypeid|0'; //此处添加了一个所要排除typeid的参数---notypeid
$dsql->SetQuery("Select id,typename,typedir,isdefault,ispart, defaultname,namerule2,moresite,siteurl,sitepath from `zmb_arctype` where $tpsql order by sortrank asc limit $totalnum");
//否定指定IDif($notypeid!=0) { $tpsql = $tpsql."and not(id in($notypeid)) ";}
{dede:channelartlist typeid ='152' notypeid='113,144,125,122'}
如果本文对你有帮助,欢迎打赏本站