织梦Dedecms是一个不错的建站cms系统,最近在用织梦建站的时候发现文章分页后,每个分页都是同一个标题,不利于优化,想在分页后面加上一个数字来进行区别,怎么做呢?

找到include/arc.archives.class.php文件

 $this->Fields['tmptitle'] = (empty($this->Fields['tmptitle']) ? $this->Fields['title'] : $this->Fields['tmptitle']);下面修改为:

 if($i>1) $this->Fields['title'] = $this->Fields['tmptitle']."-第($i)页"; 即可。

 

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2021-07-30
  • 2021-07-26
  • 2021-10-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-03
  • 2021-10-24
  • 2021-05-17
  • 2021-12-26
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
相关资源
相似解决方案