Formatting for LightPress 4

jerome, Sunday 22 May 2005

Post formatting is fairly basic in LightPress and caters to the "what you type is what you get" crowd. But it's easy to expand LP's formatting abilities by using the PreFormatted 2.0 plugin.

Normally WordPress formats posts only when they're displayed (wasting rendering time and server capacity in the process). The PreFormatted plugin rearranges formatting plugins like Markdown and Textile so that they're only active in the backend, saving a formatted copy of the post to the database. If you use this plugin in the WordPress backend then the formatted data is available to your LightPress site.

WP Compatibility 7

jerome, Tuesday 10 May 2005

LightPress has been designed from the ground up as a full replacement for the WordPress front-end. This includes a permalink and

.htaccess

system for "pretty" URLs. The only interaction with WordPress is through the database. This means that LightPress is fully compatible with WordPress 1.5, including the new 1.5.1 release.

Now this is fine if you're starting a site from scratch, but if you're converting an existing WordPress site you may not want to mess with your permalinks. I've made the conversion and hopefully I've done most of the hard work for you! The 1.0.2 LightPress release includes a file called

wp-compat.php

which converts WordPress-style queries into a format that LightPress prefers. So without further ado, here's what you need to look at.