This site is based in PmWiki — running one of the latest (or so) beta releases — plus a few ‘recipes’ (plugins) to enhance functionality, included in the \local\config.php file:
- Markup Extensions for supporting em dashes, smart quotes, etc.
- Mail form for creating contact forms with a captcha.
- Blog Simple 2 for blogging pages from multiple groups.
- Source block for syntax highlighting of code, in my case Python, SAS and PHP. This required the installation of GeSHi.
- GoogleBlogPing for pinging Google Blogs every time a page changes.
- ListCategories to produce a list (or tag cloud) of categories.
Additionally, I include the ‘feeds’ script — that comes by default with PmWiki — for providing XML feeds. For configuring the feed I am using the following code in local.php:
if ($action == 'rss') include_once('scripts/feeds.php');
function MarkupExcerpt($pagename) {
$page = RetrieveAuthPage($pagename, 'read', false);
return substr(@$page['text'], 0, 300);
}
$FmtPV['$MarkupExcerpt'] = 'MarkupExcerpt($pn)';
$FeedFmt['rss']['item']['title'] = '{$Title} - updated on $LastModified';
$FeedFmt['rss']['item']['description'] = '$MarkupExcerpt';
function MarkupExcerpt($pagename) {
$page = RetrieveAuthPage($pagename, 'read', false);
return substr(@$page['text'], 0, 300);
}
$FmtPV['$MarkupExcerpt'] = 'MarkupExcerpt($pn)';
$FeedFmt['rss']['item']['title'] = '{$Title} - updated on $LastModified';
$FeedFmt['rss']['item']['description'] = '$MarkupExcerpt';