Use dedecms woven labels dream arclist

Label Name: arclist

Function: Gets the specified document list

Scope: Global Use

Applicable version: DedeCMS V5.7 / V5.6 / V5.7

The 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 = '' column shows how many points (the default is single), version 5.3 This attribute can be displayed in multiple lines in various ways
if col = '1' to display a plurality of rows available div + css achieved
less through div + css implementation example multiple columns:

<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 using the original multi-column table displayed
row = '10 'Number of returned document list
typeid =' 'column ID, generally no need to specify the list of templates and a template file, template allows the Home "," It represents a plurality of separate columns;
getAll = '1' in the absence of this attribute is specified in columns page, article page template, does not get to "," to separate multiple columns of lower-level subclasses
titlelen = '30' title the length is equal to titlelength
infolen = '160.' represents a length equivalent to the Information infolength (only control infos, does not control the content of the description)
imgwidth = '120' thumbnail width
imgheight = '90 'thumbnail height
listtype =' all 'column type image contains thumbnail commend recommended
orderby = 'sortrank' documents Sort
§ orderby = 'hot' or orderby = 'click' represents sorted Hits
§ orderby = 'sortrank' or orderby = 'pubdate' arranged by publication time
§ orderby = 'near'
§ the OrderBy == 'lastpost' last comment by the time
§ orderby == 'scores' scores sorted by
§ orderby ='id 'according to the article ID Sort
§ orderby =' rand 'randomized to receive specified criteria document list
keyword =' 'list of documents containing the specified keyword, multiple keywords with the "," sub
innertext = '' form a single record
aid = '' specifies the document ID
IDList = '' extracts a particular document (document ID)
channelID channel ID

for example:

<div class="indexbot">
        <div class="inews">
            <div class="innewsfl">
                <div class="ntitle"><img alt="公司资讯" src="http://www.sdfymb.com/skin/images/news.jpg" /></div>
                <ul class="inul">{dede:arclist typeid='13' row='10' titlelen='150'}
                    <li><a title="[field:title/]" href="[field:arcurl/]">[field:title/]</a></li>{/dede:arclist}
                </ul>
            </div>
            <div class="innewsfl">
                <div class="ntitle"><img alt="行业资讯" src="http://www.sdfymb.com/skin/images/gszx.jpg" /></div>
                <ul class="inul">{dede:arclist typeid='14' row='10' titlelen='150'}
                    <li><a title="[field:title/]" href="[field:arcurl/]">[field:title/]</a></li>{/dede:arclist}
                </ul>
            </div>
            <div class="ijswd">
                <div class="ntitle"><img alt="常见问题" src="http://www.sdfangyuan.cn/skin/images/fq.jpg" /></div>
                <ul class="inwen">{dede:arclist typeid='15' row='3' titlelen='46'}
                    <li>
                        <div class="wen"><a title="[field:fulltitle/]" href="[field:arcurl/]" class="title">[field:title/]</a></div>
                        <div class="da">[field:info/]...</div>
                    </li>{/dede:arclist}
                </ul>
            </div>
        </div>

Guess you like

Origin blog.51cto.com/14201330/2451165