In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you through the free list to achieve dedecms home page paging method, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!
How to achieve dedecms home page pagination through a free list?
Realize dedecms homepage pagination through free list
Recommended study: dream weaving cms
1. Enter the background core-"Channel model--" Free list management-"add a list.
2. Define the free list:
(note: we are paging for the home page, so the list HTML must store the directory or it cannot be displayed, so only {cmspath} is retained.)
The following fields can be supported in the list:
Supported fields (underlying variable [field:varname/]): id,title,color,typeid,ismake,description,pubdate,senddate,arcrank,click,litpic,typedir,typename,arcurl,typeurl
Stime ("0000-00-00" format of pubdate), textlink,typelink,imglink,image ordinary fields are directly represented by [field: field name /].
The call parameter for the Pubdate release time [field:pubdate function=MyDate ('Y-m-d Hlav irig slabs published at the same time) /]
The following figure shows the label of the template call:
Use {dede:freelist/} to invoke all the information in the free list just set
Paging: {dede:pagelist listitem= "info,index,end,pre,next,pageno" listsize= "5" /}
Use this method to achieve home page pagination, the template can only use the home page template. In other words, the HTML function of updating the home page in the background will be invalidated, and the website will be generated once in the free list with one click later. Otherwise, the home page of the website will be blank.
The painful thing about the dedecms free list feature is that it has to be changed once before each generation, of course, it doesn't have much impact on the need for free lists elsewhere, but it hurts if we use free lists to implement front page pagination.
The solution is as follows:
Open makehtml_freelist_action.php (create a free list) in the Dede (default background management directory) directory to find
$dsql- > ExecuteNoneQuery ("Update `dede_ freelist` set nodefault='1' where aid='$startid';")
Find the above line of code and add / / comments in front of it.
The above is all the contents of the dedecms home page pagination method through the free list, thank you for your reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.