获得留言列表和留言分页。
实现类
com.jspxcms.ext.web.directive.GuestbookListDirective
com.jspxcms.ext.web.directive.GuestbookPageDirective
参数
- siteId:站点ID。多个用英文逗号分隔,如
'1,2,5'
。默认为当前站点,如果要获取所有站点的数据,可以传空字符串''
。 - type:留言类型编码。
- typeId:留言类型ID。
- isRecommend:是否推荐。类型:boolean。如
'true'
,'false'
。 - status:状态。默认:已审核。
范例
获取当前站点的所有专题列表:
[@GuestbookList;list]
[#list list as guestbook]
${guestbook.creator.username}{guestbook.text!}
[/#list]
[/@GuestbookList]