In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Most people do not understand the knowledge points of this article "how to use CommentList and CommentPage tags", so the editor summarizes the following, detailed contents, clear steps, and certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use CommentList and CommentPage tags" article.
Function: get a list of comments and comment paging.
Implementation class
Com.jspxcms.core.web.directive.CommentListDirective
Com.jspxcms.core.web.directive.CommentPageDirective
Parameters.
SiteId: site ID. Several are separated by English commas, such as' 1Jing 2JO5'. The default is the current site, and if you want to get data from all sites, you can pass the empty string''.
Fid: information ID.
Status: status. Default: 1 (audited), 2 (recommended).
Example
Get a list of comments for the current site:
[@ CommentList limit='8';list] [# list list as comment] ${comment.creator.username}: ${comment.textroomroomhtml} [/ # list] [/ @ CommentList]
Get a list of comments for the current article (the detail page has a default info object, which you can use directly):
[@ CommentList fid=info.id limit='8';list] [# list list as comment] ${comment.creator.username}: ${comment.textroomroomhtml} [/ # list] [/ @ CommentList]
Example of a paging tag (Param.fid can get parameters from url, such as / comment.jspx?fid=78, and you can use Param.fid to get values in the template):
[@ CommentPage fid=Param.fid pageSize='20' PagedList] [# list pagedList.content as comment] ${comment.creator.username}: ${list] [#-including a paging template -] [# include 'page.html'/] [/ @ CommentPage] the above article is about "how to use CommentList and CommentPage tags". I believe you all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about it, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.