Home > CMS Tutorial > PHPCMS > body text

Where to modify the number of items displayed in phpcms pagination

王林
Release: 2020-02-08 10:01:30
Original
2884 people have browsed it

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
Copy after login

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!

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!