Dashboard > blojsom 3.0 > ... > Plugins > Preview Plugin
  blojsom 3.0 Log In   View a printable version of the current page.  
  Preview Plugin
Added by David Czarnecki, last edited by David Czarnecki on Jul 10, 2007
Labels: 
(None)

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

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators