commentCount
根据参数提取评论数量统计。
参数 | 说明 |
siteid | 站点id |
objtype | 评论对象类型 |
objid | 评论对象id |
membername | 会员名称 |
isanonymous | 是否匿名 1是 0否 |
state | 审核状态 空字符串表示所有(默认) 1已审核 0未审核 |
cache | 是否使用缓存,默认为false |
返回值 | 说明 |
commentnum | 评论统计数量,类型为int |
示例1
<@commentCount objtype="info" objid="${currInfo.id}" ;commentnum>
${commentnum!0}
</@commentCount>