How to use the Arclist tag code?
Dreamweaver DEDECMS tag code Description and usage of Arclist tag
[Arclist tag]
This tag is the most commonly used one by DedeCms Tags, also called free list tags, among which hotart, coolart, likeart, artlist, imglist, imginfolist, specart, and autolist are all alias tags extended by different attributes defined by this tag.
Function description: Get the specified document list
Applicable scope: cover template, list template, document template
Basic syntax:
{dede:arclist typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword=''} 底层模板(InnerText) {/dede:arclist}
Attribute description:
[1] typeid='' represents the column ID, which generally does not need to be specified in list templates and file templates. In the cover template, "," is allowed to separately represent multiple columns;
[2] row='' indicates the total number of document lists returned;
[3] col='' indicates how many columns to display (default is single column);
[ 4] titlelen='' indicates the title length;
[5] infolen='' indicates the content introduction length;
[6] imgwidth='' indicates the thumbnail width;
[7] imgheight='' indicates the height of the thumbnail;
[8] type='' indicates the file type, where a null value, this attribute is not used, or type='all' is a normal document
§ When type='commend', it means recommended documents, which is equivalent to {dede:coolart}{/dede:coolart}
§ When type='image', it means it must contain thumbnail images Document, equivalent to {dede:imglist}{/dede:imglist}, {dede:imginfolist}{/dede:imginfolist}
§ When type='spec', it indicates a topic, which is equivalent to the mark {dede :specart}{/dede:specart}
The above attribute values can be used in combination, such as: type='commend image' indicates recommended image documents
[9] orderby='' indicates sorting method, the default value is senddate arranged by release time.
§ orderby='hot' or orderby='click' means sorting by the number of clicks
§ orderby='pubdate' means sorting by publication time (that is, the time value that the front desk allows to change)
§ orderby='sortrank' Sort by the new sort level of the article (use this attribute if you want to use pinned articles)
§ orderby='id' Sort by article ID
§ orderby='postnum' Sort by the number of article comments
§ orderby='rand' Randomly obtain a list of documents with specified conditions
[10] orderway='' The value is desc or asc , specifies whether the sorting method is descending order or forward sorting. The default is descending order.
[11] keyword='' indicates a list of documents containing specified keywords. Multiple keywords are separated by ","
[12] channelid='' indicates a specific channel model ID , built-in channels: topic (-1), article (1), gallery (2), Flash (4), software (3)
[13] limit='start, end' means limit For the record range, the row attribute must be equal to "end - start". MySQL's limit statement starts from 0. For example, "limit 0,5" means taking the first five records, and "limit 5,5" means taking the first five records. Starting from the five records, if you remove the five records, after using this attribute, the row attribute will be invalid.
[14] att='numeric value' indicates a custom attribute value
[15] subday='number of days' indicates documents within a number of days, usually used to obtain popular documents within a specified number of days , recommended documents, popular comment documents, etc.
[16] partsort='Number of ranks' means to automatically obtain the column ID ranked among all the sub-numbers of the parent column, marked as {dede:autolist} This attribute is only valid when using {/dede:autolist}.
The above is the detailed content of How to use the Dreamweaver tag code Arclist tag. 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

AI Hentai Generator
Generate AI Hentai for free.

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.

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.

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use