Main · Wiki Setup

This page was last modified on 04 June 2007, at 22:47 NZST

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:

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';

Keywords: , , .