The title of the DedeCMS column page is unchanged no matter which page it is, which is not conducive to the website's SEO, so we can add a page number to the title of the page.

The method is as follows:

1. First open the file include/arc.listview.class.php. Search in the file:

$this->ParseTempletsFirst();

And delete it

2. Then search,

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

Add the following code snippet before him

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

3. Open the list page of dream weaving template (list_article.htm, list_soft.htm, list_image.htm, etc.), and change its title to:

<title>{de: field. title/}_Page {de: field. pagexx/}</title>

That is, add a code such as page {dede: field. pagexx/}.

Finally, the whole station is generated. The above method is suitable for generating static pages in DEDE5.7.

Post reply

Can't comment until