Home > CMS Tutorial > DEDECMS > How to modify the dedecms pagelist tag

How to modify the dedecms pagelist tag

藏色散人
Release: 2019-12-20 10:20:56
Original
2383 people have browsed it

How to modify the dedecms pagelist tag

How to modify the dedecms pagelist tag?

Homepage We just open a page with the pagelist tag and find

Recommended learning: 梦Weavercms

The code is as follows:

{dede:pagelist listitem="info,index,end,pageno" listsize="5" /}
Copy after login

It is useless to modify it directly. We need to find the corresponding files. These files are in the include directory. We find arc_listview.class.php and open it to find

The code is as follows :

function GetPageListST($list_len,$listitem="index,end,pre,next,pageno",$pagelisttype='')
Copy after login

This function is the paging function. It is only for static pages. If you want to modify the dynamic page, you can find it.

The code is as follows:

function GetPageListDM($list_len,$listitem="index,end,pre,next,pageno")
Copy after login

So you can modify it at will. , I only modify one place, such as

The code is as follows:

$maininfo = "<li><span class="pageinfo">共<strong>{$totalpage}</strong>页 www.hzhuti.com共有".$this->Fields[&#39;typename&#39;]."手机主题".$this->TotalResult."条</span></li>rn";
Copy after login

This way it can be KO.

The above is the detailed content of How to modify the dedecms pagelist tag. 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