Dashboard > blojsom 3.0 > ... > Plugins > Skip Filter Helper Plugin
  blojsom 3.0 Log In   View a printable version of the current page.  
  Skip Filter Helper Plugin
Added by David Czarnecki, last edited by David Czarnecki on Apr 02, 2007  (view change)
Labels: 

Availability

This plugin is available as of blojsom 3.1.

Description

Outputs information about the total number of pages of entries (based on the blog entries to display property) as well as the current page.

Installation and Setup

Add the following to your /WEB-INF/classes/blojsom-plugins.xml file.

<bean id="skip-filter-helper" class="org.blojsom.plugin.skip.SkipFilterHelperPlugin" init-method="init" destroy-method="destroy">
        <property name="fetcher">
            <ref bean="fetcher"/>
        </property>        
    </bean>

Usage

The following context variables are populated and made available for use in the templates.

Variable Type Description
BLOJSOM_TOTAL_PAGES Integer Total number of pages of entries. This is calculated by dividing the total # of published entries by the number of blog entries to display at one time.
BLOJSOM_CURRENT_PAGE Integer Current page of entries being viewed.

As of blojsom 3.2, there is also a page macro, PageNavigation, that you can use in your templates to output Next and Previous page links. It can be used as follows:

#PageNavigation()

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