; the tagid and pagesize parameters must be included in the arclist tag; 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."/>
; the tagid and pagesize parameters must be included in the arclist tag; 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.">
search
HomeCMS TutorialDEDECMSHow to paginate dedecms

How to paginate dedecms

Jul 20, 2019 am 10:58 AM
dedecmsPagination

How to paginate dedecms

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,&#39;&#39;,&#39;&#39;,&#39;&#39;);
myajax.SendGet2("/plus/arcmulti.php?mtype=0&pnum="+pagenum+&#39;&tagid=&#39;+tagid);
myajax = new DedeAjax(taget_obj_page,false,false,&#39;&#39;,&#39;&#39;,&#39;&#39;);
myajax.SendGet2("/plus/arcmulti.php?mtype=1&pnum="+pagenum+&#39;&tagid=&#39;+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=&#39;index&#39; pagesize=&#39;20&#39;}
<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=&#39;index&#39;/}

Related recommendations: "dedecms usage tutorial"

## 2. Cross-column ID to realize paging on Dreamweaver homepage

First you create a new "Homepage" column in the background

How to paginate dedecms

Set the homepage column

How to paginate dedecms

Just use the list template as a template. If you are skilled, you can design it into the template you want. For example, the list_index.htm used in the homepage of Aoiyou Design Waterfall Taobao Template is designed separately, so set the homepage template. You can set it to this, as shown below

How to paginate dedecms

Main points to note: (1) The cross ID can only write the last level column ID, which is the column to which your article belongs. id; (2) You cannot update using the home page. You need to use the update column HTML. The home page link address remains unchanged.

How to paginate dedecms

The paging of the Dreamweaver homepage created by the cross-column ID can be realized.

3. 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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.