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

What is the document list tag in DedeCms tag

Jul 18, 2019 pm 06:00 PM
dedecms Label

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to search for text across all tabs in Chrome and Edge How to search for text across all tabs in Chrome and Edge Feb 19, 2024 am 11:30 AM

This tutorial shows you how to find specific text or phrases on all open tabs in Chrome or Edge on Windows. Is there a way to do a text search on all open tabs in Chrome? Yes, you can use a free external web extension in Chrome to perform text searches on all open tabs without having to switch tabs manually. Some extensions like TabSearch and Ctrl-FPlus can help you achieve this easily. How to search text across all tabs in Google Chrome? Ctrl-FPlus is a free extension that makes it easy for users to search for a specific word, phrase or text across all tabs of their browser window. This expansion

How to add tags on Douyin to attract traffic? Which tags on the platform are easiest to attract traffic to? How to add tags on Douyin to attract traffic? Which tags on the platform are easiest to attract traffic to? Mar 22, 2024 am 10:28 AM

As a popular short video social platform, Douyin has a huge user base. For Douyin creators, using tags to attract traffic is an effective way to increase the exposure of content and attract attention. So, how does Douyin use tags to attract traffic? This article will answer this question in detail for you and introduce related techniques. 1. How to add tags on Douyin to attract traffic? When posting a video, make sure to choose tags that are relevant to the content. These tags should cover the topic and keywords of your video to make it easier for users to find your video through tags. Leveraging popular hashtags is an effective way to increase your video’s exposure. Research current popular tags and trends and incorporate them into your video descriptions and tags. These popular tags usually have higher visibility and can attract the attention of more viewers. 3. Label

What is the clock behind the TikTok label? How to tag Douyin account? What is the clock behind the TikTok label? How to tag Douyin account? Mar 24, 2024 pm 03:46 PM

When browsing Douyin works, we often see a clock icon behind the tag. So, what exactly is this clock? This article will focus on the discussion of "What is the clock behind the Douyin label", hoping to provide some useful reference for your use of Douyin. 1. What is the clock behind the Douyin label? Douyin will launch some hot topic challenges. When users participate, they will see a clock icon after the tag, which means that the work is participating in the topic challenge and displays the remaining time of the challenge. For some time-sensitive content, such as holidays, special events, etc., Douyin will attach a clock icon after the label to remind users of the validity period of the content. 3. Popular tags: When a tag becomes popular, Douyin will add a clock icon after the tag to indicate that the tag is

A closer look at the video element in HTML A closer look at the video element in HTML Feb 24, 2024 pm 08:18 PM

Detailed explanation of the video tag in HTML The video tag in HTML5 is a tag used to play videos on web pages. It can render videos using different formats, such as MP4, WebM, Ogg, and more. In this article, we will introduce the use of video tag in detail and provide specific code examples. Basic Structure The following is the basic structure of the video tag:

How to delete external contact tags on DingTalk app How to delete external contact tags on DingTalk app Feb 24, 2024 am 08:20 AM

How to delete external contact tags on DingTalk app? DingTalk has a function to delete external contact tags, but most friends don’t know how to delete external contact tags on DingTalk. Next is the DingTalk guide that the editor brings to users. Graphical tutorial on how to delete external contact tags in the Ding app. Interested users can come and take a look! How to delete external contact tags in DingTalk app 1. First open DingTalk APP and click the [Management] function as shown below on the main page; 2. Then enter the enterprise management interface and find [External Contacts]; 3. Then on the external contact setting function page, select the [Label Management] service; 4. Then on the main contact label page, select the type of label group you want to delete; 5. Finally, click on the red label group

Where is the imperial cms resource network template? Where is the imperial cms resource network template? Apr 17, 2024 am 10:00 AM

Empire CMS template download location: Official template download: https://www.phome.net/template/ Third-party template website: https://www.dedecms.com/diy/https://www.0978.com.cn /https://www.jiaocheng.com/Installation method: Download template Unzip template Upload template Select template

How dedecms implements template replacement How dedecms implements template replacement Apr 16, 2024 pm 12:12 PM

Template replacement can be implemented in Dedecms through the following steps: modify the global.cfg file and set the required language pack. Modify the taglib.inc.php hook file and add support for language suffix template files. Create a new template file with a language suffix and modify the required content. Clear Dedecms cache.

How to upload local videos to dedecms How to upload local videos to dedecms Apr 16, 2024 pm 12:39 PM

How to upload local videos using Dedecms? Prepare the video file in a format that is supported by Dedecms. Log in to the Dedecms management backend and create a new video category. Upload video files on the video management page, fill in the relevant information and select the video category. To embed a video while editing an article, enter the file name of the uploaded video and adjust its dimensions.

See all articles