我还是直接说方法吧,打开 /include/arc.archives.class.php 在找到ParseDMFields方法,在方法里面把if($pageNo>1) $this->Fields['description'] = trim(preg_replace("/[rnt]/", ' ', cn_substr(html2text($this->Fields[$this->SplitPageField]), 200))); 修改成 if($pageNo>1) $this->Fields['description'] = ''; 它这里的意思就是,当页数大于0的时候 摘要就为空。 修改之后的结果就是
$this->NowPage = $pageNo; $this->Fields['nowpage'] = $this->NowPage; if($this->SplitPageField!='' && isset($this->Fields[$this->SplitPageField])) { $this->Fields[$this->SplitPageField] = $this->SplitFields[$pageNo - 1]; //if($pageNo>1) $this->Fields['description'] = trim(preg_replace("/[rnt]/", ' ', cn_substr(html2text($this->Fields[$this->SplitPageField]), 200))); if($pageNo>1) $this->Fields['description'] = ''; }
然后在模板调用的调用:
{dede:field.description runphp='yes'} if(@me<>'' )@me = '<div class="intro">'.@me.'</div>'; {/dede:field.description}本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!