MoinMoin

<< | Cookbook-V1 | >>

Note: The recipes here are for PmWiki versions 0.6 and 1.0 only. For PmWiki 2.0 recipes, see Cookbook.


I would like to import pages from MoinMoin wikis. What would be required? I've not studied it thorougly, but the pages seem to be in a fairly simple format in three parts:

  1. text the current version as files called <page name>
  2. backup all previous versions as files named <page name>.<some number>, where I think <some number> is a unix time stamp. I also think they increase as versions increase.
  3. pages containing details of the last edit. Possibly used for locking pages.

These could be imported with a process similar to:

  1. Obtain the directory listing as an array.
  2. Split on "." (I think this character is escaped by Moin to _nn CheckMe) and form $pages[pagename][editnumber]
  3. Check each pagename does not exist, then create it.
  4. Simulate edits in PmWiki containing the contents of the files in $pages[pagename] in numerical order. Or even better, set the edit date based on the editnumber (if it is a timestamp).

Also there is

  • user for storing user names. Less important, but nice to have.

pmwiki-2.3.32 -- Last modified by {{me}}

from IP: 85.171.160.186 ip should be disabled by default for security reasons