Dedecms adds the page number after the title and title of the list page

Source: Internet
Author: User
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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.