dedecms列表頁標題title后加上頁數(shù)其標題不重復的_DedeCms教程

      編輯Tag賺U幣
      教程Tag:暫無Tag,歡迎添加,賺取U幣!
      dedecms列表頁標題title后加上頁數(shù)其標題不重復的

      織夢dedecms列表頁的標題上中上頁數(shù)使列表頁的標題不重復這樣更利于優(yōu)化。
       
      標簽為:{dede:pagelist listsize='0' listitem='pageno' function='html2text(@me)'/}
       
      實例:
       
      只適用于列表頁,且該欄目內(nèi)容不止一頁的情況下,可使用版本包括dedecms v5.1至v5.6。v5.7未測試。

      測試過的朋友可以說下管用不。
       
      修改php的方法為:
       
      DedeCMS修改列表頁標題成“列表名-第xx頁”需要修改include/arc.listview.class.php
       
      靜態(tài)頁的修改方法
       
      1.刪掉236行 $this->ParseTempletsFirst();
       
      2.在262行$this->ParseDMFields($this->PageNo,1);前添加
       
      $this->Fields['pagexx'] = $this->PageNo;
       
      $this->ParseTempletsFirst();
       
      動態(tài)頁的修改方法
       
      3.在325行if((empty($this->PageNo) || $this->PageNo==1) 前添加
       
      $this->Fields['pagexx'] = $this->PageNo;
       
      list_article.htm模板的修改方法 。

      有需要的可以記錄下來,希望對你有所幫助。

      查看更多 DedeCms教程  織夢模板  織夢DedeCms視頻教程  織夢dedecms專題

      來源:模板無憂//所屬分類:DedeCms教程/更新時間:2020-05-23
      相關DedeCms教程