Dedecms uses Free List to implement homepage list pagination

Source: Internet
Author: User

1. Click "Core-channel model-Free List Management" and click "add list" on the right"

2. List Style

Select the options you need. The system is very clear and I will not talk about them much. The key here is the loop content here.

3. Open the list_free.htm file in the template directory and add the Free List tag.

Add to the position in the article list
Reference content is as follows:
{Dede: freelist /}

The body does not need to be recycled.

Note: The above code calls all the style code we wrote in step 1.
Add the paging code below
Reference content is as follows:
{Dede: pagelist listitem = "info, index, end, pre, next, pageno" listsize = "5 "/}

4. Generate the home page.

Generated in the Free List

5. Handling of some minor problems

1. At this step, you will find some small and elegant problems (The default homepage is automatically selected for each update.), But this is not acceptable for our webmaster who pursues perfection,

So let's continue: Open Dede \ templets \ freelist_add.htm to locate row 113-114 and change value = "1" to value = "0 ". Open Dede \ templets \ freelist_edit.htm and find line 89-90. Change value = "1" to value = "0 ". In this way, "do not use the default home page of directories" will never be checked by yourself.

2. It seems that there is still a problem: Why is the thumbnail of the article list so small? Too bad! Open the include \ arc. freelist. Class. php file, find lines 421 and 422, change 80 to 120, or save the size you want, and then regenerate the list.

Dedecms uses Free List to implement homepage list pagination

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.