Home > CMS Tutorial > DEDECMS > body text

How to modify list_article.htm list page with page number

藏色散人
Release: 2019-12-18 10:24:36
Original
2540 people have browsed it

How to modify list_article.htm list page with page number

How to modify the page number of list_article.htm list page?

SEO modification method of list page list_article.htm with page number

Recommended study: 梦Weavercms

Modify include/arc.listview .class.php

//How to modify the static page

1. Delete line 219 $this->ParseTempletsFirst();

2. In line 247$ Add

$this->Fields['pagexx'] = $this->PageNo;
$this->ParseTempletsFirst();
//动态页的修改方法
Copy after login

3 before this->ParseDMFields($this->PageNo,1);. In line 287 if((empty($this->PageNo) || $this->PageNo ==1) Add

$this->Fields['pagexx'] = $this->PageNo;
//list_article.htm模板的修改方法
<title>{dede:field.title/} / 第{dede:field.pagexx /}页</title>
Copy after login

before adding a way to optimize the custom list page:

Modify the column, fill in your optimization text in the column content, in the template list_article.htm Modify the title and add {dede:field.content/}.

Add another optimization:

Modify the column, fill in your optimization text in the column advanced option keywords, and add it to the template list_article Modify the title in .htm and add {dede:field name='keywords'/},

The above is the detailed content of How to modify list_article.htm list page with page number. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!