Label name: List Feature Description: Represents a list of pagination contents in a list template Scope: Only list template list_*.htm Basic syntax: {dede:list col= ' titlelen= ' infolen= ' Imgwidth= ' imgheight= ' listtype= ' orderby= ' pagesize= ' orderway= '}{/dede:list} Related functions: file \include\ arc.listview.class.php Line No. 504 //Get a Single-column document list function getarclist ($limitstart =0, $row =10, $col =1, $titlelen =30,$ infolen=250, $imgwidth =120, $imgheight =90, $listtype = "All", $orderby = "Default", $innertext = "", $tablewidth = " $ismake =1, $orderWay = ' desc ') parameter description: col= ' content columns titlelen= ' title length infolen= ' content summary length imgwidth= ' Thumbnail width imgheight= ' thumbnail high orderby= ' sort, valid sort with senddate, pubdate, ID, click, lastpost, Postnum, default to Sortrank Pagesize= ' 20 ' paging size underlying template field: ID (same ID), Typeid,sortrank,flag,ismake,channel,arcrank,click,money,title, Shorttitle,color,writer, Source,litpic (same pichttp://www.aliyun.com/zixun/aggregation/11696.html ">name), 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) Note: The list tag, in addition to supporting the basic template variables of the file table, also supports the fields of additional tables, and you know in Model Management which fields are used by the additional table support list. Use instance: This tag is a common system tag, usually used to display list content, we can see this tag in the system's list_*.htm template file, we take list_article.htm as an example: {dede:list Pagesize= ' A '} <li> [field:array runphp= ' yes '] @me = (Empty (@me [' litpic '])? "": "<a href= ' {@me [' Arcurl ']} ' class= ' preview ' ><img src= ' {@me [' litpic ']} '/></a> '); [/field:array] <a href= "[field:arcurl/]" class= "title" >[FIELD:TITLE/]</A> <span class= "info" < Small> Date: </small>[field:pubdate function= "Getdatetimemk (@me)"/] <small> click: </small>[ field:click/] <small> praise: </small>[field:scores/] </span> <p class= "Intro" [ Field:description/] ... </p> </li> {/dede:list} We view the default page display effect:
This tag is used with the pagelist tag to display the full list paging effect. If you need to display additional fields in the list label, you need to edit a content model (in software for example) in the system background [core]-[content Model Management], and then add the fields to the list additional fields.
If you need to modify the core code shown in the list, you can view the content of \include\arc.listview.class.php.
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.