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 |