<var id="xvh3p"><noframes id="xvh3p"><var id="xvh3p"></var><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing>
<var id="xvh3p"><strike id="xvh3p"><var id="xvh3p"></var></strike></var><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<span id="xvh3p"><noframes id="xvh3p"><dl id="xvh3p"></dl>
<span id="xvh3p"><noframes id="xvh3p">
<dl id="xvh3p"><noframes id="xvh3p">
<listing id="xvh3p"><noframes id="xvh3p"><listing id="xvh3p"><strike id="xvh3p"><listing id="xvh3p"></listing></strike></listing><th id="xvh3p"><strike id="xvh3p"><th id="xvh3p"></th></strike></th>
<th id="xvh3p"><strike id="xvh3p"></strike></th>
<dl id="xvh3p"><noframes id="xvh3p">
<th id="xvh3p"><noframes id="xvh3p">

观点

互联网+时代,说建站,谈运营与网络营销

织梦DedeCMS栏目页分页标题Title添加“第N页”的方法

时间:2020-12-16

织梦DedeCMS栏目页的标题,不管是第几页都是不变的,不利于网站的SEO,那么我们可以在分页的Title里加上第几页。

方法如下:

1.首先打开include/arc.listview.class.php文件.在文件中搜索:

$this->ParseTempletsFirst();

并将其删除掉.

2.然后查找,

$this->ParseDMFields($this->PageNo,1);

在他之前添加下面代码片段

$this->Fields['pagexx'] = $this->PageNo;
$this->ParseTempletsFirst();

3.打开织梦模板的列表页(list_article.htm、list_soft.htm、list_image.htm等),将其title修改为:

<title>{dede:field.title/}_第{dede:field.pagexx /}页</title>

也就是添加 第{dede:field.pagexx /}页 这样一段代码就可以。

最后生成整站,上述方法适用于DEDE5.7生成静态页面。

0
首页
案例
关于
联系