search
HomeCMS TutorialDEDECMSHow to call the page number on the DreamWeaver column list page

How to call the page number on the DreamWeaver column list page

How to call the page number on the Dreamweaver column list page?

The number of pages called on the DreamWeaver column list page

Everyone knows {dede:pagelist listitem="info,index,end,pre,next,pageno ,option" listsize="5"/} is the paging tag of

DreamWeaver, which can be called.

Recommended learning: dedecms tutorial

But in some cases we only need to call one of them, for example

We only want to call the next page, then that’s fine Use {dede:pagelist listitem="next" listsize="5"/}, then what if I only want to adjust the number of

, for example, the column has 100 pages, and I only want to call the number 100, How to call it? Let me teach you how to achieve the effect:

First we need to modify the file /include/arc.listview.class.php and find line 948:

function GetPageListST($list_len,$listitem="index,end,pre,next,pageno,TotalPage")

Add it after A TotalPage is used to get the page number.

Then find line 1054:

if(preg_match('/info/i', $listitem)) $plist .= $maininfo;

Add a line below this line:

if(preg_match('/TotalPage/i', $listitem)) $plist .= $totalpage;

In this way, we can pass {dede:pagelist listitem="TotalPage" listsize ="5"/} to get the page number of the current column.

Of course, the above is only for static paging. If you browse dynamically, you only need to make corresponding modifications.

The above is the detailed content of How to call the page number on the DreamWeaver column list page. 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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool