你们在使用dede的时候有时发布专题后,若是获取文档那里你们没有填写任何东西,dede程序默认调用是系统最新发布的文档,固然也包括专题,由于dede把专题看作是一类特殊的文档进行处理,当咱们在文档来源处填写php
要匹配的关键字时,在咱们发布后,可能会看到专题也在本专题的内容页节点列表里,这里若是咱们要避免调用专题,能够这样解决:找到文件夹include\taglib\channel 下的specialtopic.lib.php文件,打开后 找到代码:ide
- $idvalue = lib_arclistDone
- (
- $refObj, $ctag, $stypeid, $rownum, $ctag->GetAtt('col'), $ctag->GetAtt('titlelen'),$ctag->GetAtt('infolen'),
- $ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), 'all', 'default', $keywords, $listTemplet, 0, $idlist,
- $ctag->GetAtt('channel'), '', $ctag->GetAtt('att')
- );
- $notestr = str_replace('~notename~', $notename, $tempStr);
- $notestr = str_replace('~spec_arclist~', $idvalue, $notestr);
- $rvalue .= $notestr;
- if($noteid != '' && $ctag->GetAtt('noteid')==$noteid) break;
而后把 $ctag->GetAtt('channel') 改为 1(1在dede里表示普通文档,-1表示专题) 就能够了,但要注意$ctag->GetAtt('channel')前面有空格。 spa