DEDECMS Global Label arclist| Document List

Source: Internet
Author: User
Keywords Dedecms arclist Global tab document list

Arclist| Document List

Label name: Arclist
Tags Introduction: Dream-weaving common tags, also known as free list tags, where imglist, Imginfolist, Specart, Coolart, and autolist are alias tags that are extended by the different attributes defined by the tag.
Feature Description: Get the list of specified documents
Scope: Global use
Basic syntax:
{dede:arclist&http://www.aliyun.com/zixun/aggregation/37954.html >nbsp; Flag= ' h ' typeid= ' row= ' col= ' titlelen= ' ' infolen= ', ' imgwidth= ' imgheight= ' listtype= ' ' orderby= ' keyword= ' 0,1 '}
<a href= ' [field:arcurl/] ' >[field:title/]</a>
{/dede:arclist}
Related functions:
file \include\ taglib\arclist.lib.php Line 7th
Function lib_arclist (& $ctag,& $REFOBJ)
Parameter description:
col= ' The number of columns displayed (default is a single column), This property in version 5.3 can be displayed multiple lines in multiple ways
if col= ' 1 ' displays more than one column of available DIV implementations
The following are examples of implementing multiple columns by div:
<style type=text/css>
Div{width:400px;float:left;
</style>
{dede:arclist row= ' titlelen= ' orderby= ' pubdate ' ' idlist= ', ' col= ' 2 '}
[field:textlink /] ([Field:pubdate function=mydate (' m-d ', @me)/]) <br/>
{/dede:arclist}
when col>1 will use the original table multiple-column method to display
row= ' 10 ' returns the total number of documents list
typeid= ' column ID, in list template and profile template generally do not need to specify, in the first page template allows"," separate multiple columns;
getall= ' 1 ' without specifying this attribute, in the column page, the article page template, will not get the "," separate the subordinate subclasses of multiple columns
Titlelen = ' 30 ' heading length equivalent to Titlelength
Infolen= ' 160 ' indicates that the content profile length is equivalent to Infolength (controls only infos, does not control description content)
imgwidth= ' 120 ' thumbnail width
imgheight= ' 90 ' thumbnail height
listtype= ' All ' column type image contains thumbnails commend recommended
orderby= ' Sortrank ' document sort
§orderby= ' hot ' or orderby= ' click ' Indicates by number of clicks
§orderby= ' Sortrank ' or orderby= ' pubdate ' by publication time
§orderby= ' near '
§orderby== ' lastpost ' by last comment time
§orderby== ' scores ' sorted by score
§orderby= ' id ' sorted by article ID
§orderby= ' rand ' randomly obtain a list of documents with the specified criteria
keyword= ' containing the specified keyword. Multiple keywords ","
innertext = ' single record style
Aid= ' Specify document ID
Idlist = ' Extract specific document (document ID)
Channelid Channel ID
limit= ' start ID, number of records '   (starting ID starting from 0) indicates a qualified record range, such as: limit= ' 1,2 '   means to start with a record with ID 1, take 2 records)
flag = ' h ' custom attribute value: Headline [h] recommend [c] picture [p] slide [f] scrolling [s] Jump [j] graphic [a] bold [b]
Noflag = ' same as flag, but this is to say do not include these properties
orderway= ' desc ' value is DESC or ASC, specifies whether the sort is sorted by descending or descending order, by default, by decreasing
subday= ' Days ' indicates how many days of document &NBSP;

To use Arclist to attach a table field:

To get additional table content, you must meet two criteria
1. Specify Channelid Properties
2, specify the field to get addfields= ' field 1, field '
As:
{dede:arclist addfields= ' filetype,language,softtype ' row= ' 8 ' channelid= ' 3 '}
[Field:textlink/]-[Field:softtype/]<br/>
{/dede:arclist}

Underlying template field:
ID (same ID), Typeid,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,
Source,litpic (same picname), Pubdate,senddate,mid, Lastpost,scores,goodpost,badpost,notpost,
Description ( With infos), filename, image, Imglink, Fulltitle, Textlink, Typelink,plusurl, Memberurl, Templeturl,
Stime (pubdate) 0000-00-00 "format"
Where:
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= '
Field Call method: [field:varname/]
such as:
{dede:arclist infolen= '}
[field:textlink/]
<br>
[ field:infos/]
<br>
{/dede:arclist}
Note: The field implementation in the underlying template is also a form of dream weaving, so it supports the use of PHP syntax, function extensions, and so on.
such as: Add (new) flag to the content published for 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]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.