SupportArea

BoltWire is a FREE content management system written in PHP.

Its innovative architecture combined with best-in-class forms processing makes it ideal for creating complex, interactive, web applications fast...


Documentation

Markups
Variables
Conditions
Functions
Forms
Commands
Cheatsheet

Documentation

Tutorials > Replacetable

BoltWire has an amazingly powerful little tool called the replacetable that actually only takes one line of code in engine.php.

It allows you to define strings you want to replace in the final output of the page. To use it, define a find and a replace value. The following lines are actually used to insert the robotBlock code in the page header.


$BOLTreplaceHTML['find'][] = '</head>';
$BOLTreplaceHTML['replace'][] = "<meta name='robots' content='noindex'>\n</head>";

You can similarly use it to insert javascript in the header, or a supplemental style sheet. This feature makes it very helpful in developing plugins as it doesn't require the user to do anything.

Note that you are not limited to inserting content in your page header. You can use the replace table to modify any string in your site. This feature is case sensitive.