Home> CMS Tutorial> DEDECMS> body text

How to implement paging on the home page in the dedecms template

藏色散人
Release: 2019-12-25 10:38:46
Original
2248 people have browsed it

How to implement paging on the home page in the dedecms template

How to implement paging on the home page in the dedecms template?

Three ways to implement paging on the home page in the dedecsm template Method: Use arclist tag Ajax to realize Dreamweaver homepage paging/free list to realize Dreamweaver homepage paging, etc. Interested friends can learn about it

Recommended learning:Dreamweavercms

Three methods on how to achieve paging on the homepage in the Dreamweaver dedecsm template

Sometimes when making the Dreamweaver template, you need to achieve the homepage paging effect, but the Dreamweaver homepage itself does not have the paging function, so what? How to realize paging on the DreamWeaver homepage? There are 3 ways to achieve this:

1. Use arclist tag Ajax to realize Dreamweaver homepage paging

2. Cross-column ID to realize Dreamweaver homepage paging

3. Free list Realize paging on Dreamweaver’s homepage

1. Use arclist tag Ajax to realize Dreamweaver’s homepage paging

1. Must be introduced in the homepage

The code is as follows:

Copy after login

2.

must be added with

The code is as follows:

Copy after login

3. The arclist tag must contain tagid and pagesize parameter. The first is the cache name, and the second is the number of single page entries.

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

    {/dede:arclist}
    Copy after login

    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'/} 2. Cross-column ID to realize paging on Dreamweaver homepage

    1. First, you create a new "Homepage" column in the background

    How to implement paging on the home page in the dedecms template

    2. Set the homepage column

    How to implement paging on the home page in the dedecms template

    #3. Just use the list template as the template. If you are skilled, you can design it as you want. For example, the list_index.htm used in the home page of the Aiyou Design {iucms.com} waterfall flow Taobao template is designed separately, so you can set the home page template to this, as shown below

    How to implement paging on the home page in the dedecms template

    4. Main points to note:

    (1) The cross id can only write the last level column id, which is the column id to which your article belongs;

    (2) ) The update cannot be done using the home page. To update, use the update column HTML. The home page link address remains unchanged.

    5. Pagination of the DreamWeaver homepage created by 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. In the future, it will be necessary to generate the website with one click. Generate it once in the free list, otherwise the homepage of the website will be blank, so this method is not recommended.

    Today we will introduce here how to realize the home page pagination of Dream Weaver. We hope it will be helpful to everyone.

    The above is the detailed content of How to implement paging on the home page in the dedecms template. 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
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!