Description
The entries limiter plugin limits the number of entries that get displayed and is set by the blog-entries-display parameter in your individual blog.properties. A value of -1 for this parameter indicates that all entries should be shown in which case this plugin acts like a pass through filter.
Installation and Setup
In your global /WEB-INF/plugin.properties file, add the following line:
limiter=org.blojsom.plugin.limiter.EntriesLimiterPlugin
You may then add "limiter" to one of the flavor-based plugin chains. These plugin chains can be found in the individual user's plugin.properties file. For example:
html.blojsom-plugin-chain=limiter
Usage and URL Parameters
URL parameters
The following table describes the URL parameters that affect the output of the entries limiter plugin.
| URL parameter |
Accepted values |
Usage |
| entries |
The "entries" parameter can be used to override the number of entries displayed per category that is set by the blog-entries-display parameter in blog.properties. Valid integer that is -1 OR > 0 to specify the limit on the number of blog entries displayed. A value of -1 will cause the plugin to return all entries it receives. |
/blog/?entries=7 |