织梦栏目页分页title加"第N页"

以上就是调用栏目管理的SEO标题代码:{dede:field.seotitle /}的方法,这样充分体现列表页标题显示的效果,有利于搜索引擎的收录。

第二个问题就是这样列表页的标题都成了一个样子的了,没有页码,不利于网站的seo,怎么办呢?

1.首先打开DEDE安装程序下的include目录下的/arc.listview.class.php文件.在文件中搜索:
 $this->ParseTempletsFirst();
并将其删除掉.
2.然后查找,$this->ParseDMFields($this->PageNo,1); 在他之前添加下面代码片段
$this->Fields['pagexx'] = $this->PageNo;
$this->ParseTempletsFirst();
3.打开DEDECMS模板文件夹中的列表页(list_article.htm,list_soft.htm, list_image.htm 等),将其title修改为:
<title>{dede:field.title/}_第{dede:field.pagexx /}页</title>
也就是添加 第{dede:field.pagexx /}页 这样一段代码就可以.然后生成整站,上述方法适用于DEDE5.7生成静态页面.

原文地址:https://www.cnblogs.com/tanlingdangan/p/4208302.html