欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

dedecms列表頁(yè)標(biāo)題title后加上頁(yè)數(shù)其標(biāo)題不重復(fù)的方法

  發(fā)布時(shí)間:2013-09-30 16:41:49   作者:佚名   我要評(píng)論
在列表頁(yè)的標(biāo)題后加上頁(yè)數(shù)使列表頁(yè)的標(biāo)題不重復(fù)這樣更利于優(yōu)化,下面是從搜索整理的解決方法,有類似需求的朋友可以參考下,希望對(duì)大家有所幫助
在列表頁(yè)的標(biāo)題上中上頁(yè)數(shù)使列表頁(yè)的標(biāo)題不重復(fù)這樣更利于優(yōu)化。

標(biāo)簽為:{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)'/}

實(shí)例:<title>{dede:field.title/}_第{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)'/}頁(yè)</title>

只適用于列表頁(yè),且該欄目?jī)?nèi)容不止一頁(yè)的情況下,可使用版本包括dedecms v5.1至v5.6。v5.7未測(cè)試。測(cè)試過(guò)的朋友可以說(shuō)下管用不。

修改php的方法為:

DedeCMS修改列表頁(yè)標(biāo)題成“列表名-第xx頁(yè)”需要修改include/arc.listview.class.php

靜態(tài)頁(yè)的修改方法

1.刪掉236行 $this->ParseTempletsFirst();
2.在262行$this->ParseDMFields($this->PageNo,1);前添加
$this->Fields['pagexx'] = $this->PageNo;
$this->ParseTempletsFirst();

動(dòng)態(tài)頁(yè)的修改方法

3.在325行if((empty($this->PageNo) || $this->PageNo==1) 前添加
$this->Fields['pagexx'] = $this->PageNo;

list_article.htm模板的修改方法

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

相關(guān)文章

最新評(píng)論