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 its 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!
Boilerplate_XH couldn't be tested so far in various environments. It is a so called release candidate. Use with caution!
Boilerplate_XH is a plugin for CMSimple_XH. It requires a UTF-8 encoded version.
The installation is done as with many other CMSimple_XH plugins. See the CMSimple_XH wiki for further details.
Note that the boilerplate data files may be accessed directly by requesting 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 care for yourself that these data are protected from non authorized access.
The plugin's configuration is done as with many other CMSimple_XH plugins in the website's back-end. Select Plugins → Boilerplate.
You can change the default settings of Boilerplate_XH under "Config". Hints for the options will be displayed when hovering over the help icon with your mouse.
Localization is done under "Language". You can translate the character strings to your own language (if there is no appropriate language file available), or customize them according to your needs.
The look of the Boilerplate_XH can be customized under "Stylesheet".
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 is preferable.
Boilerplate_XH is licensed under GPLv3.
© 2012-2014 Christoph M. Becker
Russian tranlation © 2012 Lubomyr Kydray
Slovak translation © 2012 Dr. Martin Sereday
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.
Many thanks to the community at the CMSimple_XH-Forum for tips, suggestions and testing.
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.