Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The usage of dream-weaving tag code Arclist tag

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you about the use of dream tag code Arclist tags, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Dream tag code Arclist tag how to use?

Description and usage of dream weaving DEDECMS tag code Arclist tag

[Arclist tag]

This tag is one of the most commonly used tags in DedeCms, also known as free list tags, where hotart, coolart, likeart, artlist, imglist, imginfolist, specart, and autolist are alias tags that extend from the different attributes defined by this tag.

Function description: get the list of specified documents

Applicable scope: cover template, list template, document template

Basic syntax:

{dede:arclist typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword=''} underlying template (InnerText) {/ dede:arclist}

Attribute description:

[1] typeid='' represents column ID, which generally does not need to be specified in list template and file template. "," is allowed to represent multiple columns separately in cover template.

[2] row='' indicates the total number of documents returned

[3] col='' indicates how many columns are displayed (default is single column)

[4] titlelen='' indicates title length

[5] infolen='' indicates the length of the content introduction

[6] imgwidth='' represents thumbnail width

[7] imgheight='' represents the height of the thumbnail

[8] type='' represents the file type, where a null value, if this attribute is not used, or type='all' is a normal document

When §type='commend', it represents the recommended document, which is equivalent to {dede:coolart} {/ dede:coolart}

In §type='image', a document that must contain thumbnails is equivalent to {dede:imglist} {/ dede:imglist}, {dede:imginfolist} {/ dede:imginfolist}

When §type='spec', it represents a topic, which is equivalent to the tag {dede:specart} {/ dede:specart}

The above attribute values can be used together, for example, type='commend image' represents the recommended picture document.

[9] orderby='' indicates sorting mode, and the default value is senddate sorted by release time.

§orderby='hot' or orderby='click' means to arrange by number of clicks

§orderby='pubdate' is arranged by publication time (that is, the time value allowed to be changed by the front desk)

§orderby='sortrank' sorts by the new sort level of the article (use this attribute if you want to use the top article)

§orderby='id' is sorted by article ID

§orderby='postnum' sorts by the number of comments on the article

§orderby='rand' randomly gets a list of documents for specified conditions

[10] the orderway='' value is desc or asc, and specifies whether the sorting method is descending or forward. The default is descending.

[11] keyword='' represents a list of documents with specified keywords, with multiple keywords separated by ","

[12] channelid='' represents a specific channel model ID, with built-in channels: project (- 1), article (1), atlas (2), Flash (4), software (3)

[13] limit=' start, end 'means a limited range of records. The row attribute must be equal to "end-start". The limit statement of mysql starts with 0, such as "limit 0Mague 5" means to take the first five records, "limit 5Power5" means to take down five records from the fifth record, after using this attribute, the row attribute will be invalid.

[14] att=' value 'indicates a custom attribute value

[15] subday=' days' indicates the number of days within a document, and is usually used to get hot documents, recommended documents, popular comment documents, etc., with a specified number of days.

[16] the number of digits in the partsort=' arrangement 'means to automatically get the column ID of all the children of the parent column, which is marked as {dede:autolist} {/ dede:autolist}. The use of this attribute is valid.

The above is all the contents of the use of the dream tag code Arclist tag, thank you for your reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report