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:
- text the current version as files called <page name>
- 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.
- pages containing details of the last edit. Possibly used for locking pages.
These could be imported with a process similar to:
- Obtain the directory listing as an array.
- Split on "." (I think this character is escaped by Moin to _nn CheckMe) and form $pages[pagename][editnumber]
- Check each pagename does not exist, then create it.
- 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.4.2 -- Last modified by {{me}}