Home > CMS Tutorial > Empire CMS > body text

How to modify the paging display number on the empire cms7.0 dynamic list page in one move

silencement
Release: 2019-11-28 13:33:47
forward
3099 people have browsed it

How to modify the paging display number on the empire cms7.0 dynamic list page in one move

The example in this article describes how to modify the number of pages displayed on the dynamic list page of Empire cms7.0. Share it with everyone for your reference. The specific method is as follows:

By default, the number of empire's dynamic list pages is 16, which is not controlled by the parameters in the system settings. Here is how to control it.

First open the file e\action\ListInfo\index.php and find the code

The code is as follows:

$page_line=16;//每页显示链接数
Copy after login

The number inside is written as 16, so it is written to death Now, the number of pagination is not controlled by the system parameters.

It is recommended to study "Empire cms tutorial"

So just change the 16 here to the pagination of the system parameter Just the number of control variables

Now I checked and found that the system control variable is

The code is as follows:

$public_r['listpagelistnum']
Copy after login

So just change it to the following code :

The code is as follows:

$page_line=$public_r['listpagelistnum'];//每页显示链接数
Copy after login

Now you can try to change the number of pages in the combined item list, because it is also hard-coded, I believe you will have already modified it

I hope this article will be helpful to everyone’s Imperial CMS website building.

The above is the detailed content of How to modify the paging display number on the empire cms7.0 dynamic list page in one move. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:www.word666.com
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!