1. Use arclist tag Ajax to realize paging on the DreamWeaver homepage
Must be on the homepage
<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script>
introduced in /head>
must be added<script> function multi(pagenum,tagid) { var taget_obj = document.getElementById(tagid); var taget_obj_page = document.getElementById("page_"+tagid); myajax = new DedeAjax(taget_obj,false,false,'','',''); myajax.SendGet2("/plus/arcmulti.php?mtype=0&pnum="+pagenum+'&tagid='+tagid); myajax = new DedeAjax(taget_obj_page,false,false,'','',''); myajax.SendGet2("/plus/arcmulti.php?mtype=1&pnum="+pagenum+'&tagid='+tagid); DedeXHTTP = null; } </script>
. The tagid and pagesize parameters must be included in the arclist tag. The first is the cache name, and the second is the number of single page entries.
{dede:arclist tagid='index' pagesize='20'} <li><a href="[field:arcurl/]" >[field:title/]</a></li> <p>[field:info/]...</p> {/dede:arclist}
The arcpagelist tag must exist, and the cache parameter tagid must be declared and the cache parameter must be consistent with the tagid in arclist.
{dede:arcpagelist tagid='index'/}
Related recommendations: "dedecms usage tutorial"
## 2. Cross-column ID to realize paging on Dreamweaver homepage
First you create a new "Homepage" column in the background3. Free list to realize Dreamweaver homepage paging
Because free list is used to realize Dreamweaver homepage paging, the function of updating the homepage HTML in the background is useless. After the key is generated, the website must be generated once in the free list, otherwise the homepage of the website will be blank, so this method is not recommended.The above is the detailed content of How to paginate dedecms. 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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

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

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

SublimeText3 English version
Recommended: Win version, supports code prompts!

Notepad++7.3.1
Easy-to-use and free code editor

Atom editor mac version download
The most popular open source editor