Is the arclist tag of Dreamweaver CMS commonly used?
Tag name: arclist
Tag introduction: Commonly used tags for dream weaving, also known as free lists tag, among which imglist, imginfolist, specart, coolart, and autolist are all alias tags extended by different attributes defined by the tag. [Recommended learning: dedecms video tutorial]
Function description: Get the specified document list
Applicable scope: global use
Basic syntax:
{dede:arclist flag='h' typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'} <a href='[field:arcurl/]'>[field:title/]</a> {/dede:arclist}
Parameter description:
col='' Display in multiple columns (default is single column). In version 5.3, this attribute can be displayed in multiple columns. A way to display multiple rows
If col='1' wants to display multiple columns, you can use div css to implement it
The following is an example of how to implement multiple columns through div css:
<style type=text/css> div{width:400px;float:left;} </style> {dede:arclist row='10' titlelen='24' orderby='pubdate' idlist='' col='2'} ?[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br/> {/dede:arclist}
When col>1 will be displayed using the original table multi-column mode
row='10' 返回文档列表总数 typeid='' 栏目ID,在列表模板和档案模板中一般不需要指定,在首页模板中允许用","分开表示多个栏目; getall='1' 在没有指定这属性的情况下,在栏目页、文章页模板,不会获取以","分开的多个栏目的下级子类 titlelen = '30' 标题长度 等同于titlelength infolen='160' 表示内容简介长度 等同于infolength imgwidth='120' 缩略图宽度 imgheight='90' 缩略图高度 listtype='all' 栏目类型 image含有缩略图 commend推荐 orderby='sortrank' 文档排序方式 § orderby='hot' 或 orderby='click' 表示按点击数排列 § orderby='sortrank' 或 orderby='pubdate' 按出版时间排列 § orderby='near' § orderby=='lastpost' 按最后评论时间 § orderby=='scores' 按得分排序 § orderby='id' 按文章ID排序 § orderby='rand' 随机获得指定条件的文档列表 keyword='' 含有指定关键字的文档列表,多个关键字用","分 innertext = '' 单条记录样式 aid='' 指定文档ID idlist ='' 提取特定文档(文档ID) channelid 频道ID limit='起始ID,记录数' (起始ID从0开始)表示限定的记录范围(如:limit='1,2' 表示从ID为1的记录开始,取2条记录) flag = 'h' 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b] noflag = '' 同flag,但这里是表示不包含这些属性 orderway='desc' 值为 desc 或 asc ,指定排序方式是降序还是顺向排序,默认为降序 subday='天数' 表示在多少天以内的文档
Use arclist to call the method of additional table fields:
To obtain additional table content, two conditions must be met
1. Specify the channelid attribute
2. Specify the fields to be obtained addfields='field 1,field'
For example:
{dede:arclist addfields='filetype,language,softtype' row='8' channelid='3'} [field:textlink /] - [field:softtype /]<br /> {/dede:arclist}
Underlying template fields:
ID(同 id),typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer, source,litpic(同picname),pubdate,senddate,mid, lastpost,scores,goodpost,badpost,notpost, description(同infos),filename, image, imglink, fulltitle, textlink, typelink,plusurl, memberurl, templeturl, stime(pubdate 的"0000-00-00"格式)
Among them:
textlink = <a href='arcurl'>title</a> typelink = <a href='typeurl'>typename</a> imglink = <a href='arcurl'><img src='picname' border='0' width='imgwidth' height='imgheight'></a> image = <img src='picname' border='0' width='imgwidth' height='imgheight' alt=’titile’>
Field calling method: [field:varname/]
For example:
{dede:arclist infolen='100'} [field:textlink/] <br> [field:infos/] <br> {/dede:arclist}
Note: The Field implementation in the underlying template is also a form of Dreamweaver tag, so Supports the use of PHP syntax, Function extension and other functions.
For example: Add the (new) mark to the content released on the day
[field:senddate runphp='yes'] $ntime = time(); $oneday = 3600 * 24; if(($ntime - @me)<$oneday) @me = "<font color='red'>(new)</font>"; else @me = ""; [/field:senddate] [b][/b]
For more knowledge about Dreamweaver cms, please visit the Dreamweaver cms column! !
The above is the detailed content of Is the arclist tag of Dreamweaver CMS commonly used?. 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

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

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

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

Hot Topics



Dream Weaver CMS Station Group Practice Sharing In recent years, with the rapid development of the Internet, website construction has become more and more important. When building multiple websites, site group technology has become a very effective method. Among the many website construction tools, Dreamweaver CMS has become the first choice of many website enthusiasts due to its flexibility and ease of use. This article will share some practical experience about Dreamweaver CMS station group, as well as some specific code examples, hoping to provide some help to readers who are exploring station group technology. 1. What is Dreamweaver CMS station group? Dream Weaver CMS

The security of DreamWeaver cms is relatively good for the following reasons: 1. Fast vulnerability repair; 2. CSRF (cross-site request forgery) protection; 3. XSS (cross-site scripting attack) protection; 4. SQL injection protection; 5. Code audit.

There is no charge for the Dreamweaver CMS system. Dreamweaver CMS is an open source content management system. Its core code is provided for free. Users can download the latest version of Dreamweaver CMS for free and obtain relevant technical support and documentation. However, during use, users may need to purchase additional functional modules or theme templates, which are chargeable. The price for purchasing these paid modules and templates depends on the specific functions and design complexity.

Title: Analysis of the reasons and solutions for why the secondary directory of DreamWeaver CMS cannot be opened. Dreamweaver CMS (DedeCMS) is a powerful open source content management system that is widely used in the construction of various websites. However, sometimes during the process of building a website, you may encounter a situation where the secondary directory cannot be opened, which brings trouble to the normal operation of the website. In this article, we will analyze the possible reasons why the secondary directory cannot be opened and provide specific code examples to solve this problem. 1. Possible cause analysis: Pseudo-static rule configuration problem: during use

Solution to the failure of Dreamweaver CMS to connect to the database: 1. Check the database configuration and ensure that the relevant information of the database is correctly set in the /data/config.php file in the root directory of Dreamweaver CMS; 2. Test the database connection by creating a A simple PHP script to test whether the database connection is successful; 3. Check the database server status and change the database server address in the /data/config.php file in the root directory of DreamWeaver CMS; 4. Check the network connection.

Dreamweaver CMS is a very popular website construction system with powerful functions, friendly interface and easy to use. But sometimes, we will find that to achieve some special needs, the functions it originally provided may not be enough. In response to this situation, we can carry out secondary development and realize personalized website needs through customized code. This article will share some secrets about the secondary development of DreamWeaver CMS to help you unlock the skills of personalized website customization. 1. Description of customization requirements for homepage carousel: original DreamWeaver CMS homepage

Title: Things to note when deleting database files of Dreamweaver CMS. As a popular website construction tool, the deletion of database files of Dreamweaver CMS is one of the problems often encountered in website maintenance. Incorrect database file deletion operations may result in website data loss or website failure to function properly. Therefore, we must be extremely cautious when performing database file deletion operations. The following will introduce the precautions for deleting Dreamweaver CMS database files, and provide some specific code examples to help you correctly delete database files. Note: prepare

Sorry, I can't provide information on cracking or bypassing the captcha. If you have any further questions or need help, please feel free to let me know.
