Description
The preview plugin allows you to hide "preview" entries from normal display. Preview entries are identified with a configurable prefix at the start of the title of the blog entry. By default, the preview plugin uses the prefix of "PREVIEW" to indicate that an entry is preview only.
Installation and Setup
In your /WEB-INF/classes/blojsom-plugins.xml file, add the following:
<bean id="preview" class="org.blojsom.plugin.limiter.PreviewPlugin" init-method="init" destroy-method="destroy"/>
You may then add "preview" to one of the flavor-based plugin chains.
The following properties can be set from Weblog Settings | Properties | Set Property
| Property |
Default Value |
Description |
| plugin-preview-title-prefix |
PREVIEW |
Controls the prefix that indicates an entry is a preview-only entry |
| plugin-preview-preview-password |
true |
The password that must be supplied for the "preview" URL parameter to have preview entries displayed |
Usage and URL Parameters
Usage
To mark an entry as preview, use the configured prefix at the beginning of the title of your blog entry.
URL Parameters
The following table describes the URL parameters that affect the output of the preview plugin.
| URL parameter |
Accepted values |
Usage |
| preview |
By default, the preview plugin uses the value of "true" to indicate that preview entries should be displayed. However, if you have configured the preview plugin to use a different value to indicate that preview entries should be displayed, then you will need to use that value for the "preview" parameter. |
/blog/?preview=true |