Description
The Word Count plugin counts the number of words in an entry.
Installation and Setup
In your global /WEB-INF/plugin.properties file, add the following line:
word-count=org.blojsom.plugin.statistics.WordCountPlugin
You may then add "word-count" 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=meta, word-count, ...
Usage and URL Parameters
There are no URL parameters to control the operation of the Word Count plugin.
Usage
The plugin will add meta-data to the blog entry which can be retrieved in your template. The key to retrieve the word count meta-data is blojsom-plugin-word-count.
Meta-Data Attributes and Types
The following table describes the meta-data attributes that are available and their associated type.
| Meta-data key |
Type |
Description |
| blojsom-plugin-word-count |
java.lang.Integer |
Number of words in an entry. |