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

第二个问题就是这样列表页的标题都成了一个样子的了,没有页码,不利于网站的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生成静态页面.

posted @ 2015-08-12 11:50  风尘守望者  阅读(140)  评论(0编辑  收藏  举报