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: