Home > CMS Tutorial > DEDECMS > body text

How to implement paging in the dedecms Dreamweaver topic node list content

藏色散人
Release: 2019-12-02 09:39:46
Original
2910 people have browsed it

How to implement paging in the dedecms Dreamweaver topic node list content

dedecmsHow to achieve paging in the content of the node list of the Dream Weaver topic?

Method:

Open /include/arc.specview.class.php, find

$ctag = $this->dtp->GetTag(“page”);
Copy after login

and insert

below Recommended learning: 梦Weavingcms

The code is as follows:

if(!is_object($ctag))
{
$ctag = $this->dtp->GetTag(‘list’);
}
Copy after login

Note that the code now becomes

The code is as follows:

$ctag = $this->dtp->GetTag(“page”);
if(!is_object($ctag))
{
$ctag = $this->dtp->GetTag(‘list’);
}
if(!is_object($ctag))
{
$this->PageSize = 20;
}
else
{
if($ctag->GetAtt(“pagesize”)!=”")
{
$this->PageSize = $ctag->GetAtt(“pagesize”);
}
else
{
$this->PageSize = 20;
}
}
$this->TotalPage = ceil($this->TotalResult/$this->PageSize);
Copy after login

This way in the special topic For the list template page, use the

code as follows:

{dede:list pagesize=’10′}
<a href=”[field:arcurl/]“>[field:title/]</a>
{/dede:list}
{dede:pagelist listitem=”info,index,end,pre,next,pageno” listsize=”4″/}
Copy after login

to achieve paging. Just adjust pagesize='10' as needed. If not specified, the default is 20.

The above is the detailed content of How to implement paging in the dedecms Dreamweaver topic node list content. 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