Free CMS for RapidWeaver!

Fed up with the high-cost and difficult implementation of the current crop of CMS stacks for RapidWeaver? I was. So I made my own!
Using WordPress as the back end and some includes, I was able to get just what I want – and it was easy!
Here are the steps:

  • Install WordPress →
  • wp-config to get DB credentials →
  • wp_posts is the table that has the data (view in phpMyAdmin or equivalent) →
  • paste an include to your script (Perl, PHP etc) in RapidWeaver where you want the editable text →
  • give client the WordPress login/pass and page URLs they can edit.

Example includes:

<!--#include virtual="/cgi-bin/" -->

<?php require '../includes/example.php' ; ?>

Benefits of this approach:

  • Free!
  • No licenses
  • No subscriptions
  • Use on as many sites as you want!

You don’t actually even need a DB to see how this approach works, just a text file. For example, FTP (or use cPanel) a text file to your server and then edit it online using Brackets or some other IDE.

<?php include 'includes/example.php' ; ?>

However, using WordPress for the back end offers many more options, especially for clients:

  • Version control (if they make a mistake, they can go back to a previous revision)
  • Easy to use editor
  • No FTP

Optional WordPress Plugins and Settings

<meta name="robots" content="noindex">

PHP Script
$mysqli = new mysqli("localhost", "username", "password", "database");

/* check connection */
if (mysqli_connect_errno()) {
printf(“Connect failed: %s\n”, mysqli_connect_error());

/* Change wp_posts and ID to match your DB */
$query = “SELECT * FROM wp_posts WHERE ID=5 “;
if ($result = $mysqli->query($query)) {
while ($row = $result->fetch_row()) {
/* free result set */

/* close connection */

RapidWeaver – sample HTML in a page

Copy HTML to your WordPress page

Replace HTML in RapidWeaver with includes code

First mover advantage

I first heard the term “first mover advantage” in the movie There’s a lot to it. For example, the pre-kickstarter phenom Karyn Bosnak who successfully launched to wipe out her debts. Who knows how many people have tried to do the same thing, but got nowhere. It’s not that those other people may have been any less deserving than Karyn, but the novelty just isn’t there. It ended with her.