Boilerplate_XH - a CMSimple_XH Plugin

Boilerplate_XH facilitates to manage and (re)use text blocks consisting of (X)HTML on CMSimple pages. This way, you write some text once, and can reuse it on several pages. Actually boilerplate() is very similar to newsbox(). But while newsbox() is working with hidden CMSimple pages, boilerplate() stores it's content in separate files. So you can use this feature to keep your content.htm small by replacing the complete page content with a Boilerplate_XH text block.

Please do read this documentation before you encounter any problems!

Important Notice

Boilerplate_XH couldn't be tested so far in various environments. It is a so called BETA version. Use with caution!

Requirements

Boilerplate_XH is a plugin for CMSimple_XH. It requires a UTF-8 encoded version.

Installation

The installation is done as with many other CMSimple_XH plugins. See the CMSimple_XH wiki for further details.

  1. Backup the data on your server.
  2. Unzip the distribution on your computer.
  3. Upload the whole directory boilerplate/ to your server into CMSimple_XH's plugins directory.
  4. Set write permissions to the subdirectories config/, css/, languages/ and the plugin's data folder.
  5. Switch to "Boilerplate" in the back-end to check if all requirements are fulfilled.

Settings

The plugin's configuration is done as with many other CMSimple_XH plugins in the website's back-end. Select "Boilerplate" from "Plugins".

You can change the default settings of Boilerplate_XH in "Plugin Config". Hints for the options will be displayed when hovering over the help icon with your mouse.

Localization is done in "Plugin Language". You can translate the character strings to your own language, or customize them according to your needs.

The look of the Boilerplate_XH can be customized in "Plugin Stylesheet".

Usage

You can manage your text blocks in admin mode; go to "Plugins" → "Boilerplate" → "Text Blocks". The usage should be pretty much self explaining, but some notes might be appropriate:

Inserting of a text block on a page is done with the following plugin call:

{{{PLUGIN:boilerplate('%NAME%');}}}

Replace %NAME% with the name of an already defined text block. The easiest way is to copy&paste the plugin call from Boilerplate_XH's administration.

Note that using boilerplate() in the template is possible, but for performance reasons using newsbox() instead might be preferable.

Note that the boilerplate data files could be accessed directly by calling their URL. A .htaccess file to prohibit this is already contained in the default data folder. For other servers or for custom data folders you have to take for yourself, that those data are protected from non authorized access.

License

Boilerplate_XH is licensed under GPLv3.

© 2012 Christoph M. Becker

Credits

Boilerplate_XH was inspired by rühgallisaniener and Hoffmann5928.

The plugin icon is designed by Mart (Marco Martin). Many thanks for publishing this icon under GPL.

This plugin uses free applications icons from Aha-Soft. Many thanks for making these icons freely available.

And last but not least many thanks to Peter Harteg, the "father" of CMSimple, and all developers of CMSimple_XH without whom this amazing CMS wouldn't exist.