Welcome

BoltWire is a content management system developed by Dan Vis.

Welcome Tour
Documentation
Mailing List



Popular Posts

Version 5.11 Released
May 26, 2016

Big Changes Coming Soon...
April 28, 2016

Catching Up
April 6, 2016



Other Sites

Here's some other sites by Dan Vis:

Alexa Echoes
Join my adventures developing for Amazons exciting new voice platform.

Firefly Spot
Personal rambling about new gadgets, technology news, and space travel.

FAST Missions
My ministry hub, with news and updates about our online school.

You can follow him at www.danvis.info.

Replacetable

Documentation > Concepts > 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.

To leave a comment, please login using your Facebook account: