Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of pagination on the first page in dedecms template

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Today, the editor to share with you is the dedecms template in the home page to achieve pagination method, I believe that many people do not understand, in order to let you know more, so give you a summary of the following content, let's look down. I'm sure you'll get something.

How do I paginate the home page in the dedecms template?

Dream weaving dedecsm template how to achieve the home page of the three methods: using arclist tags + Ajax to achieve dream page page / free list to achieve dream page page, etc., interested friends can understand

Recommended study: dream weaving cms

Three methods of homepage pagination in Dream Weaving dedecsm template

Sometimes it is necessary to achieve the effect of home page page when weaving dream template, but the home page of dream weaving itself does not have paging function, so how to achieve the first page page of dream weaving? There are three ways to do this:

First, use arclist tag + Ajax to realize the home page of dream weaving.

Second, cross-column ID to achieve dream-weaving home page pagination

Third, free list to realize the home page of dream weaving.

First, use arclist tag + Ajax to realize the home page of dream weaving.

1. Must be introduced in the home page

The code is as follows:

2. Must join

The code is as follows:

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;}

3. Tagid and pagesize parameters must be included in the arclist tag. The first is the cache name, and the second is the number of entries per page.

{dede:arclist tagid='index' pagesize='20'} [field:title/]

[field:info/]...

{/ dede:arclist}

4. 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'/} II. Cross-column ID to realize the homepage of dream weaving.

1. First of all, you create a "home page" column in the background.

2. Set up the home page column

3. The template can be directly used with the list template. If you are good at it, you can design the template you want. For example, the list_index.htm used on the home page of the {iucms.com} waterfall flow Taobao guest template is designed separately, so you can set the home template to this, as shown in the following figure.

4. The main points for attention are as follows:

(1) the crossed id can only write the last-level column id, which is the id of your article.

(2) the update cannot be updated with the home page. The link address of the HTML home page of the update column remains unchanged.

5. The home page of Weaving Dream made by cross-column ID can be realized.

Third, free list to realize the home page of dream weaving.

Because the home page of dream weaving is paged with a free list, the HTML function of updating the home page in the background is useless, and after a click to generate the site, it is necessary to generate the site once in the free list, otherwise the home page of the site is blank, so this method is not recommended.

On the dedecms template in the home page to achieve paging method to share here, I hope that the above content can have a certain reference value, you can learn to apply. If you like this article, you might as well share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report