获取文章列表指令

指令介绍

 

articleList,获取文章列表文章。

 

方法参数

 

参数名称 参数说明 参数类型 是否必须
categoryUUID 分类uuid String
count 数量 Integer
searchProperty 搜索属性 String
searchValue 搜索值 String
orderProperty 排序属性 String
orderDirection 排序方式(asc,desc)      String

 

使用方法

 

<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
  
  <@articleList count=2>
  	<#list articles as data>
  		<h3>${data.title}</h3>
  	</#list>
  </@articleList>

</body>
</html>

 

效果展示

 

 

2019-06-27 16:05:43
0