Dashboard > blojsom > ... > Users Guide > Page Filter
  blojsom Log In   View a printable version of the current page.  
  Page Filter
Added by David Czarnecki, last edited by David Czarnecki on Jan 27, 2006  (view change)
Labels: 
(None)

Availability

Available as of blojsom 2.29

Description

Allows you to dispatch to template pages for constructing an about page or other non-blog pages for your site.

Installation and Configuration

Add the following to the top of /WEB-INF/web.xml with the other filter definitions.

<filter>
    <filter-name>PageFilter</filter-name>
    <filter-class>org.blojsom.filter.PageFilter</filter-class>
    <init-param>
        <param-name>use-root-blog-compatability</param-name>
        <param-value>false</param-value>
    </init-param>
</filter>
Initialization parameter Optional Default value Description
use-root-blog-compatability true false This option would only be used if you were hosting a single blog on a blojsom installation and did not have the blog name in your blog URL.

Add the following to the top of /WEB-INF/web.xml with the other filter-mapping definitions. This filter-mapping should be placed before the PermalinkFilter mapping.

<filter-mapping>
    <filter-name>PageFilter</filter-name>
    <servlet-name>blojsom</servlet-name>
</filter-mapping>

Usage

The following examples show the template that would be requested for various URLs.

URL Template requested
http://your.site.com/blojsom/blog/default/about/page/ about.vm
http://your.site.com/blojsom/blog/default/tags/page/ tags.vm
http://your.site.com/blojsom/blog/default/archives/page/ archives.vm

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