{dede:freelist/}How to add a sorting method to the list call?
{dede:freelist/}List call to increase the sorting method
Recommended learning:梦Weavercms
How to use the free list tag{ dede:freelist/}I won’t say much here.
When you use the free list, you will find that the sorting method is incomplete. For example, the random sorting "rank" and sorting by score "scores" that I need to use are not available here.
Of course, these two sorting dede exist but are not listed, so it is simple.
Find and open dede/templets/freelist_add.htm "Add Free List Template".
Find
Insert the following code below this line and save:
<option value=”rand”>随机推荐</option> <option value=”scores”>按照得分</option>
Find and open dede/templets/freelist_edit.htm "Modify Free List Template".
Find
$orderby = $ctag->GetAtt(‘orderby’);Change the following parameters to the following.
$sorta = "sortrank, top authority value; pubdate, publishing time; senddate, entry time; click, number of clicks; id, document ID, lastpost, last comment time; postnum, total number of comments; rand, random Recommended;scores, according to the score";
then find
<select name=”orderby” id=”orderby” style=”width:120″>
and insert
<option value=”rand”>随机推荐</option> <option value=”scores”>按照得分</option>
below to save, exit and verify.
The above is the detailed content of How to add sorting method to {dede:freelist/}list call. 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

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Zend Studio 13.0.1
Powerful PHP integrated development environment

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