如何实现dede首页栏目文章指定调用,首页文章栏目指定ID调用
{dede:arclist flag=‘h’ typeid=’’ row=’’ col=’’ titlelen=’’ infolen=’’
imgwidth=’’ imgheight=’’ listtype=’’ orderby=’’ keyword=’’ limit=‘0,1’}
[field:title/]
{/dede:arclist}
title表示文章的标题http://www.conglin.cc/qh/
col=’’ 分多少列显示(默认为单列)
row=‘10’ 返回文档列表总数
typeid=’’ 栏目ID,在列表模板和档案模板中一般不需要指定,在封面模板中允许用","分开表示多个栏目;
titlelen = ‘30’ 标题长度 等同于titlelength
infolen=‘160’ 表示内容简介长度 等同于infolength
imgwidth=‘120’ 缩略图宽度http://www.conglin.cc/wh/
imgheight=‘90’ 缩略图高度
listtype=‘all’ 栏目类型(顶级栏目??)
orderby=‘sortrank’ 文档排序方式
§ orderby=‘hot’ 或 orderby=‘click’ 表示按点击数排列
http://www.conglin.cc/fw/
§ orderby=‘sortrank’ 或 orderby=‘pubdate’ 按出版时间排列
§ orderby=‘near’
§ orderby==‘lastpost’ 按最后评论时间 http://www.conglin.cc/pt/
§ orderby==‘scores’ 按得分排序
§ orderby=‘id’ 按文章ID排序
§ orderby=‘rand’ 随机获得指定条件的文档列表
keyword=’’ 含有指定关键字