How to implement dedecms homepage paging through free lists?
Realize dedecms home page paging through free lists
Recommended learning: 梦weavercms
1. Enter the background core ---》Channel Model--"Free list management---"Add list.
2. Define a free list:
(Note: We are for homepage paging, so the list HTML must be stored in the directory otherwise it cannot be displayed, so only {cmspath} is retained)
The following fields can be supported in the list:
Supported fields (underlying variables [field:varname/]): id, title, color, typeid, ismake, description, pubdate, senddate , arcrank, click, litpic, typedir, typename, arcurl, typeurl,
stime (pubdate's "0000-00-00" format), textlink, typelink, imglink, image Ordinary fields use [field:field directly Name/] means.
·Pubdate publishing time calling parameters [field:pubdate function=MyDate('Y-m-d H:i:s',@me)/]
The following figure shows the label of template calling:
Use {dede:freelist/} to call 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 realize homepage paging. The template can only use the homepage template. In other words, the function of updating the homepage HTML in the background is no longer available. In the future, after generating a website with one click, you have to go to the free list to generate it. Otherwise, the homepage of the website will be blank.
dedecms free list function has a annoying phenomenon, it needs to be changed before each generation
The solution is as follows:
Open makehtml_freelist_action.php (create a free list) in the Dede (default background management directory) directory and find
$dsql->ExecuteNoneQuery(" Update `dede_freelist` set nodefault='1' where aid='$startid';");
Find the above line of code, add // in front and comment it out.
The above is the detailed content of How to implement dedecms homepage paging through free lists. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 English version
Recommended: Win version, supports code prompts!

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.
