Home  >  Article  >  CMS Tutorial  >  Where to modify the number of items displayed in phpcms pagination

Where to modify the number of items displayed in phpcms pagination

王林
王林Original
2020-02-08 10:01:302876browse

Where to modify the number of items displayed in phpcms pagination

The default number of displayed page numbers is 10. For example, if you want to change it to display 3, as shown below:

Previous page 1 2 3...34 Next Page

can be modified in the phpcms\libs\functions\global.func.php file.

First open the phpcms\libs\functions\global.func.php file;

Then find the paging function function pages (about line 665)

Finally make the following modifications:

$setpages = 3

Related recommendations: phpcms tutorial

The above is the detailed content of Where to modify the number of items displayed in phpcms pagination. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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