Questions answered by this recipe
- Can I convert pages from TikiWiki into PmWiki format?
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/).
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
- 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).
- Pm, 2007-03-30
See discussion at ConvertTikiWiki-Talk