1. 模板标签
标签 |
#articleRank() |
用途 |
获取最新文章、热门文章、推荐文章等特殊内容列表 |
参数 |
参数为一个map,以kv对的形式 |
2. 参数说明
#articleRank({
categoryId:1,
type:'hot|recommend|latest',
limit:5,
withChild:false
})
参数 |
类型 |
必填 |
说明 |
categoryId |
int |
否,默认值是 0 |
|
withChild |
bool |
否,默认值是false |
|
type |
str |
否,默认是 latest |
latest,最新内容;hot,按点击排序,最热内容;recommend,被推荐的内容 |
limit |
int |
是 |
栏目id |
3. 实例
#articleRank({categoryId:2})
<a href="#(item.title)">
#end
#articleRank({categoryId:2,type:'latest'})
<a href="#(item.title)">
#end
#articleRank({categoryId:2,type:'hot'})
<a href="#(item.title)">
#end