Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

ConvertTikiWiki

Summary: Convert TikiWiki pages into PmWiki format
Version: 2007-03-30
Prerequisites: pmwiki-2.2.0-beta41
Status: Experimental
Maintainer: Pm
Categories: WikiConversion

Questions answered by this recipe

  • Can I convert pages from TikiWiki into PmWiki format?

Description

This is a preliminary recipe for converting TikiWiki pages to PmWiki.

First, start by exporting pages from TikiWiki -- this produces a "tarball" containing TikiWiki pages as individual files. Extract the tarball into a directory somewhere (e.g., tiki.d/).

Next, copy the converttiki.phpΔ script into the cookbook/ directory, and add the following lines to local/config.php:

include_once('cookbook/converttiki.php');
UseTikiDir('tiki.d', 'Tiki');

The UseTikiDir() function configures PmWiki to look in the given directory (tiki.d/) for pages in TikiWiki export format. These pages will then appear in PmWiki under the 'Tiki' group (or whatever group name is given as the second argument to UseTikiDir).

You can then browse the TikiWiki pages as if they were standard PmWiki pages. If someone edits the page, then the edited version of the page will be stored in the wiki.d/ (like any other standard PmWiki page).

To do a batch conversion of some or all TikiWiki pages to PmWiki format, try ?action=converttiki.

Notes

  • This is still a preliminary script, and I only had one sample TikiWiki page to work from when I wrote it. Feedback would be especially welcome.
  • Not all TikiWiki markups are converted to their PmWiki equivalent -- I need to find a more complete reference of available markups (wikimatrix.org only lists a few of them).

Comments

See Also

Contributors

  • Pm, 2007-03-30
Edit - History - Print - Recent Changes - Search
Page last modified on September 06, 2008, at 01:21 PM