接着,在该文件中查找变量定义 `$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");
//否定指定ID
if($notypeid != 0) {
$tpsql = $tpsql."and not(id in($notypeid)) ";
}
{dede:channelartlist typeid ='114' notypeid='123,124,122,127'}