Home > CMS Tutorial > DEDECMS > What is the document list tag in DedeCms tag

What is the document list tag in DedeCms tag

爱喝马黛茶的安东尼
Release: 2019-07-18 18:00:51
Original
2620 people have browsed it

What is the document list tag in DedeCms tag

The document list tag in the DedeCms tag is the arclist tag.

1. Tag parameter list

The parameter list of this tag has many parameters, which shows that it is powerful and can be freely expanded. After learning it, it will be very useful.

2. Tag meaning and function

This tag is one of the most commonly used and important tags among all tags in the DedeCMS system. Its name is "Document List Tag", and the tag name is arclist. It is mainly used to call the system's documents and display them in the form of a list.

3. Scope of application of tags

The scope of application of the document list tag (arclist) in the DreamWeaver system is global use. To put it simply, it can be used globally; to put it more complicatedly, it can be used on any page in the foreground, such as home page, list, content page, etc.

Related recommendations: "dedecms usage tutorial"

However, it cannot be used in some miscellaneous function pages. This is due to the different template parsing mechanism of miscellaneous function pages. . You don't need to ask me why, you just need to remember it.

----Commonly used parameters

row Example of returning several records: row = '19'

typeid Example of setting the target column of the call: typeid='2, 5'

titlelen Example of setting the maximum number of characters displayed in the title: titlelen='34'

infolen Example of setting the maximum number of characters of the introduction: infolen='106'

flag limits custom document attributes. Example: flag='a,f'

noflag sets documents that do not contain the custom document attributes. Same as above and is the opposite.

orderby sets the sorting of documents. Fields

hot and click Sort by the number of document clicks

sortrank and pubdate Sort by document update time

id Sort by document ID

lastpost Sort by last Sort expressions

scores Sort by total document points

googpost Sort by positive reviews

badpost Sort by negative reviews

rand Sort by random

----Advanced parameters

channelid Example of setting content model: channelid='1'

addfields Example of setting and calling additional table fields: addfields='Field name 1, field Name 2'

----Other parameters

col Set the display in several columns

imgwidth Thumbnail width

imgheight Thumbnail height

listtype Set the type of the calling document

idlist Set the calling document ID list

aid Set the calling document ID

limit Set the calling start and End example: limit='2,5'

orderway Set the sorting method

asc Sort in forward order

desc Sort in reverse order (default)

Tag underlying template

In the DedeCMS system, the underlying template is obtained by [field:field name/]. In the arclist tag, the value range of the field name is All fields of the main table and additional tables.

But I hope everyone will pay attention to the fact that additional table fields cannot be obtained directly and need to be implemented with advanced parameters. See the above parameter list for details.

Tag calling example

Calling the 10 latest updated documents of the entire site

{dede:arclist row='10'} [field:title/] {/dede:arclist}
Copy after login

Calling the 15 recommended articles with column ID 2

{dede:arclist row='15' typeid='2' flag='c'} [field:title/] {/dede:arclist}
Copy after login

Randomly called 15 software documents from the entire site

{dede:arclist row='15' orderby='rand' channelid='3'} [field:title/] {/dede:arclist}
Copy after login

The above is the detailed content of What is the document list tag in DedeCms tag. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template