Open source java CMS - FreeCMS2.8 custom label commentPage

Project Address: http://www.freeteam.cn/

commentPage

Comments extracts objects based on parameters.

parameter

Explanation

siteid

Site id

objtype

Comments object type

objid

Comments object id

membername

Member Name

isanonymous

Whether Anonymous 1 0 No

order

Sort Type  

1 Published Descending (default)

2 Published Ascending


state

Approval status empty string to represent all (default) 1 0 unaudited audited

cache

Whether to use the cache, the default is false

page

Current first few pages, default 1

action

Paging jump page

orderby

From the beginning FreeCMS 2.4 support

Sorting sql, after setting failure order attribute



return value

Explanation

commentList

Review the list of objects of type List <Data Objects comment>

pager

Paging objects


Example 1

Paging extraction comments per page 10.

<@commentPage  num='10' page='1' objtype="info" objid="${currInfo.id}" action='${contextPath}templetPro.do?siteid=${site.id}&templetPath=comment.html';commentList,pager>


<ul>

<#list commentList as comment>

<li>

Paging: $ {comment.content ""!}

</li>

</#list>

</ul>

${pager.formPageStr}

</@commentPage>


Guess you like

Origin blog.51cto.com/3357346/2443129