Dashboard > blojsom > ... > Available Plugins > All Entries Plugin
  blojsom Log In   View a printable version of the current page.  
  All Entries Plugin
Added by David Czarnecki, last edited by David Czarnecki on Oct 21, 2004  (view change)
Labels: 
(None)

Description

The all entries plugin adds all of the entries in your blog to a list and makes that list available to your templates.

Installation and Setup

In your global /WEB-INF/plugin.properties file, add the following line:

all-entries=org.blojsom.plugin.common.AllEntriesPlugin

You may then add "all-entries" to one of the flavor-based plugin chains. These plugin chains can be found in the individual blog's plugin.properties file. For example:

html.blojsom-plugin-chain=..., all-entries

Usage and URL Parameters

You can use this in, for example, the Velocity templates:

#foreach ($entry in $BLOJSOM_PLUGIN_ALL_ENTRIES)
 ... do something
#end

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_PLUGIN_ALL_ENTRIES Output BlogEntry[] Array of BlogEntry objects.

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