日本免费高清视频-国产福利视频导航-黄色在线播放国产-天天操天天操天天操天天操|www.shdianci.com

學(xué)無(wú)先后,達(dá)者為師

網(wǎng)站首頁(yè) 織夢(mèng)學(xué)院 正文

織夢(mèng)DedeCMS欄目頁(yè)分頁(yè)標(biāo)題Title添加“第N頁(yè)”的方法

更新時(shí)間: 2018-11-02 織夢(mèng)學(xué)院

織夢(mèng)DedeCMS欄目頁(yè)的標(biāo)題,不管是第幾頁(yè)都是不變的,不利于網(wǎng)站的SEO,那么我們可以在分頁(yè)的Title里加上第幾頁(yè)。

方法如下:

1.首先打開(kāi)include/arc.listview.class.php文件.在文件中搜索:  

$this->ParseTempletsFirst();

并將其刪除掉.

2.然后查找,

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

在這段代碼之前添加下面這些代碼

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

3.打開(kāi)織dedecms模板的列表頁(yè) (list_article.htm、list_soft.htm、list_image.htm等)將里面的title修改成:

<title>{dede:field.title/}_第{dede:field.pagexx /}頁(yè)</title>

就相當(dāng)于添加第{dede:field.pagexx /}頁(yè) 這樣的一段代碼就行

然后一鍵更新網(wǎng)站,以上方法適用于織夢(mèng)5.7生成靜態(tài)頁(yè)面

欄目分類
最近更新