Home  >  Article  >  CMS Tutorial  >  How to call the page number on the DreamWeaver column list page

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

藏色散人
藏色散人Original
2019-11-15 11:10:122886browse

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