In dedecms, the titles on the default list page are the same, which is not conducive to optimization. So today, we will release the method of modifying the title of the list page and adding the number of pages. Modify it to "list name-Page xx ".
In dedecms, the titles on the default list page are the same, which is not conducive to optimization. So today, we will release the method of modifying the title of the list page and adding the number of pages. Modify it to "list name-Page xx ".
Instance: {dede: field. title/}_ {dede: pagelist listsize = '0' listitem = 'pageno' function = 'html2text (@ me) '/}
The version is v5.6. V5.7 is not tested.
The php modification method is as follows:
DedeCMS modify the title of the list page to "list name-Page xx". you need to modify include/arc. listview. class. php.
Static page modification method
Delete row 236 $ this-> ParseTempletsFirst ();
Add $ this-> ParseDMFields ($ this-> PageNo, 1 );
$ This-> Fields ['pagexx'] = $ this-> PageNo;
$ This-> ParseTempletsFirst ();
Dynamic page modification method
Add
$ This-> Fields ['pagexx'] = $ this-> PageNo;
How to modify the list_article.htm Template
{Dede: field. title/}/page {dede: field. pagexx /}
You can optimize your title!