Description
This plugin will retrieve a list of recent comments from the available entries and allow you to display them from your templates.
Availability
This plugin is available as of blojsom 2.23.
Installation and Setup
In your global /WEB-INF/plugin.properties file, add the following line:
recent-comments=org.blojsom.plugin.comment.RecentCommentsPlugin
You may then add "recent-comments" to the beginning of one of the flavor-based plugin chains. These plugin chains can be found in the individual user's plugin.properties file. You should add this plugin before any plugins that limit the number of entries displayed. This is because the plugin only loops over the entries that it has available. For example:
html.blojsom-plugin-chain=recent-comments,...
The following parameters in blog.properties can be used to control the behavior of this plugin.
| Property |
Default Value |
Description |
| plugin-recent-comments-count |
5 |
Controls the number of recent comments pulled by the plugin. |
Usage and URL Parameters
There are no URL parameters to control the operation of the plugin.
Context Attributes and Types
The following table describes the context attributes that are available and their associated type.
| Context key |
Input or Output |
Type |
Description |
| BLOJSOM_RECENT_COMMENTS |
Output |
List of org.blojsom.blog.BlogComment objects |
You may then display the information from the comments as appropriate in one of your template files. |