Just now, I was still worried about the revision of Happiness Studio...
Now, I feel very happy because I have solved some usage problems of dede:freelist. I have no choice but to post it on the website to share with my friends, and I hope it can help some friends who have the same problem as me.
Freelist is a new function tag of dede5.3. It is also called the free list tag. In the past, when dede created an article or image list, it could only be called with the {dede:arclist/} tag or through {dede:list/} on the column page. Tags call column data. Both calling methods have their own advantages and disadvantages. The former method of calling data is very flexible, but it cannot be called in pages, while the latter can be called in pages.
I encountered such a situation when I was doing the "Our Works Column" in Happiness Studio. Our works column is divided into two columns: ongoing projects and past works. I want to implement "Previous Works" For paging this list, neither list nor arclist can be used. Fortunately, the new function freelist developed by dede5.3 can realize this function.
However, my understanding of freelist is limited to some basic introductions on the official website. The use of freelist is actually no different from lsit. Just put {dede:freelist/} under the list template. Then target {dede:freelist/} The tag description must be specially written under the free list page.
Although the above is easy to understand and easy to do, it still took me a lot of trouble to solve various small problems.
Question 1: {dede:freelist/} has been placed in the current list template (my template is called work.html), and the loop code for the free list template page has also been written. Then when previewing, I clicked on that column and found that The so-called {dede:freelist/} has no effect at all. There is no content!!
answer:
I spent a lot of time on this. Maybe it’s because I’m a newbie or because I’m careless. I found the following errors one after another, and then I solved the problem.
1. The list storage address, list naming, etc. are not the same as the specified column. Therefore, the page opened by the free list cannot be connected to the "Our Works" column, so when I preview "Our Works", it doesn't work at all. No free list data appears. Please see the picture below -----
2. After I modified this, I went to preview it happily, but dede gave me another slap. There was still no data. What was going on? So I asked an expert for guidance through QQ, and he lost it. Tell me something: Update your free list template. I excitedly updated the template. I found a link below, and I clicked on the preview. When I saw it, I was almost overjoyed. I finally saw the long-lost free list. The data... I'm so happy.
3. But I was too happy too early. I found that the thumbnails generated by the free list were all 80*80 for some reason. This problem did not make me dumbfounded. I knew that [field:image/] was doing it. I skillfully changed the expression of the picture to Then I quickly saw that the list was finally the same as my static design. I was very happy./
4. As the saying goes... extreme happiness brings sorrow...
Just when I thought the problem that had been bothering me all morning was finally solved. I updated the entire site with one click. Then I entered the domain name to see the effect of the website. I was immediately dumbfounded. I went to the "Our Works" column. , the contents of the free list disappeared again... (If it hadn't been for the fact that I had just bought the monitor, I would have wanted to smash it...)
There was no way. I calmed down and continued to search for the problem. I thought carefully about which step in the whole process went wrong. When I cycled through the same work three times, I clicked on the link provided by the free list update above. .I found that the content of the free list was back. Then, I entered the domain name again, checked the content under that column, and found that the content of the free list was still there..
This is strange... No wonder I have to update the content of the free list myself when I click one button to update the entire site, and click on the link. In this way, the entire site is updated? I did not continue to look for the answer to this question. Because this free list really makes me too tired.
I hope that friends who encounter problems like mine can find solutions to the problems here. After all, I have searched online for a long time and haven’t found any similar solutions... Sigh.../
New problems discovered from 6th to 14th:
After I added new works and then refreshed the page as a whole, I found a serious problem, that is, there was a problem with the free list column. No matter I clicked "Our Works", "Previous Page", "Next Page" or Preview When updating the links to the free list, I found that there was only data on the last page. After careful inspection, I found that the links in two places were filled in incorrectly. Please see the red circle in the picture below.
In addition, in the column settings of "Our Works", you must choose to open the first page of the list.
Please pay attention to these minor oversights and don’t be as careless as me. Haha/