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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Dreamweaver CS6
Visual web development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

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
Powerful PHP integrated development environment

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool