Ded Dedecms
>dede>>
Document List
Global Tags
v55,v56,v57
gets the list of specified documents
{dede:arclist flag= ' h ' typeid= "row=" col= "titlelen=" "infolen=" "Imgwidth=" imgheight= ' keyword= ' limit= ' 0,1 '}[field:title/]{/dede:arclist}
col: How many columns are displayed (default is a single column), this property can be displayed in multiple ways in version 5.3
row: Returns the total number of document lists
typeid: Column ID, in the list template and profile template generally do not need to specify, in the first page template allows "," separate multiple columns
GetAll: In the case of not specifying this attribute, in the column page, the article page template, will not get to "," separate the sub-categories of multiple columns
Titlelen: Title length is equivalent to Titlelength
Infolen: Indicates that the content profile length is equivalent to Infolength
imgwidth: Thumbnail width
imgheight: Thumbnail height
listtype: Column type image contains thumbnails commend recommended
ORDER BY: How documents are sorted
keyword: A list of documents with the specified keywords, with "," points for multiple keywords
innertext: Single record style
Aid: Specify Document ID
idlist: Extracting a specific document (document ID
Channelid: Channel ID
limit: (starting from 0) indicates a limited range of records (for example: limit= ' + ' means starting from a record with ID 1 and taking 2 records
flag: Custom attribute value: Headline [h] recommended [c] picture [p] slide [f] scroll [s] jump [j] graphic [a] bold [b]
Noflag: Same flag, but here is a representation that does not contain these attributes
Orderway: The value is DESC or ASC, specifies whether the sort is descending or a forward sort, and the default is descending
Subday: The document that represents the number of days
>>dede>>*/function lib_arclist (& $ctag, & $REFOBJ) {global $envs; $autopartid = 0; $tagid = "; $tagname = $ctag->gettagname (); $channelid = $ctag->getatt (' Channelid '); Increase the processing of paging content $pagesize = $ctag->getatt (' pagesize '); if ($pagesize = = ") {$multi = 0; } else {$tagid = $ctag->getatt (' TagID '); }//Arclist need weight sort, default to "N" and set to "Y" if order is required $isweight = $ctag->getatt (' isweight '); if ($tagname = = ' Imglist ' | | $tagname = = ' Imginfolist ') {$listtype = ' image '; } else if ($tagname = = ' Specart ') {$channelid =-1; $listtype = "; } else if ($tagname = = ' Coolart ') {$listtype = ' commend '; } else if ($tagname = = ' Autolist ') {$autopartid = $ctag->getatt (' Partsort '); } else {$listtype = $ctag->getatt (' type '); }//Sort if ($ctag->getatt (' sort ')! = ") $orderby = $ctag->getatt (' sort '); else if ($tagname = = ' Hotart ') $orderby = ' click '; else $orderby = $ctag->getatt (' by "); Use a different default innertext if (Trim ($ctag->getinnertext ())! = ') for the corresponding tag $innertext = $ctag->getinnertext (); else if ($tagname = = ' Imglist ') $innertext = getsystemplets (' part_imglist.htm '); else if ($tagname = = ' Imginfolist ') $innertext = getsystemplets (' part_imginfolist.htm '); else $innertext = getsystemplets ("part_arclist.htm"); Compatible with Titlelength if ($ctag->getatt (' titlelength ')! = ") $titlelen = $ctag->getatt (' titlelength '); else $titlelen = $ctag->getatt (' Titlelen '); Compatible with Infolength if ($ctag->getatt (' infolength ')! = ") $infolen = $ctag->getatt (' infolength '); else $infolen = $ctag->getatt (' Infolen '); $typeid = Trim ($ctag->getatt (' typeid ')); if (empty ($typeid)) {$typeid = (isset ($refObj->fields[' typeid ')? $refObj->fields[' typeid ']: $envs [' typeID '] ); } if ($listtype = = ' Autolist ') {$typeid = Lib_getautochannelid ($ctag->getatt (' Partsort '), $typeid); } if ($ctaG->getatt (' att ') = = ') {$flag = $ctag->getatt (' flag '); } else {$flag = $ctag->getatt (' att '); } return Lib_arclistdone ($REFOBJ, $ctag, $typeid, $ctag->getatt (' Row '), $ctag->getatt (' Co L '), $titlelen, $infolen, $ctag->getatt (' ImgWidth '), $ctag->getatt (' imgheight '), $listtype, $orderby, $ctag->getatt (' keyword '), $innertext, $envs [' Aid '], $ctag->getatt (' idlist '), $channelid, $ctag ->getatt (' limit '), $flag, $ctag->getatt (' Orderway '), $ctag->getatt (' Subday '), $ctag->getatt (' Noflag '), $tagid, $pagesize, $isweight);}
Completely do not understand how to parse the {dede:article function can not find the place to call the egg pain ah let me the pain is the end of the generated PHP code where he is how to generate HTML code of various problems of various egg pain
Reply to discussion (solution)
You open the Weave dream Default template, the homepage has the slide effect, you should learn mold fang. Dabigatran: 153436140
You open the Weave dream Default template, the homepage has the slide effect, you should learn mold fang. Dabigatran: 153436140 code I'll write I'm at the bottom of the study ha ready to re-write a CMS to learn
Suggested Learning Smarty
Call the method step-by-step jump, you can certainly find, or look at the document.