Still workin' on it...
You will have to modify the values in php/site_config.php
to suit your server environment.
content_root
is the file path to the directory in which pages are stored. url_root
is the full URL of the site root.internal_link_prefix
is the local URL of content.php
relative to url_root
.main_page
is the name of the home page of the site (here Main).css_file
is the local URL of the CSS stylesheet to be used by the site. $site->title, $site->slogan, $site->copyright
contain HTML displayed in those areas on each page. $site->specialPages
is an array whose values are file paths of pages relative to content.php
. Currently '404'
is the only supported special page. Pages are written in HTML with an implicit body element, augmented with MediaWiki-style free links and {{directives}}
.
"Piped links" are written as follows:
[[Main]]
: Main (internal link, relative to current page)
[[Main|Main pa]]ge
: Main page (Suffixed link)
[[/Main]]
: Main (internal link, relative to content root)
[[Main|Text]]
: Text ("potholed" internal link)
[[!/content.php/Main]]
: /content.php/Main (Raw link to file)
[[!http://benwightman.net/content.php/Main]]
: http://benwightman.net/content.php/Main (External link)
[[//Error/404]]
: Error/404
[[/Error/404]]
: 404
Links are case-sensitive except for the first character.
Recognized directives are:
{{@property value}}
Set the value of a property. {{$property}}
Return the value of a property. {{include page}}
Include the contents of the specified page. {{redirect page}}
Redirect to the specified page. Properties are either scalar properties or array properties. The difference is in how multiple set directives are handled: scalar properties have their value overwritten; array properties are appended to.
Recognized properties are:
title
: Scalar property. Overrides the page's displayed title. If omitted, the page filename is used as the displayed title.
nav-item
: Array property. Adds a piped link to the top navigation bar.
nav-active
: Scalar property. An integer giving the index of the navbar item marked as 'active'.
path
: Array property. Adds a piped link to the "path" shown under the page title.
tag
: Array property. Adds a piped link to the list of "tags" shown after the page content.