arclist标签使用:调用最新文章按发布时间排序

2017-03-27 dedecms

{dede:arclist channelid='' row='10' titlelen='60'}

[field:title /]


{/dede:arclist} row='10' 调用10条, titlelen='60'标题长度为30汉字
按ID排序降序排列,从大到小

{dede:arclist channelid='' row='10' titlelen='60' orderby='id' }

[field:title /]


{/dede:arclist} row='10' 调用10条, titlelen='60'标题长度为30汉字 orderby='id' 按ID,降序排列  


按ID排序顺序排列,从小到大

{dede:arclist channelid='' row='10' titlelen='60' orderby='id' orderway='asc' }

[field:title /]


{/dede:arclist} row='10' 调用10条, titlelen='60'标题长度为30汉字 orderby='id' 按ID,orderway='desc' 值为 desc 或 asc ,指定排序方式是降序还是顺向排序,默认为降序