|
Cookbook /
ConvertUseModSummary: Convert UseMod pages to PmWiki
Version:
Prerequisites:
Status: Experimental
Maintainer: Pm
Categories: WikiConversion
Questions answered by this recipe
DescriptionThe usemod.phpΔ script is a preliminary implementation of an automated routine for converting pages from an existing UseMod installation into PmWiki. The script reads pages directly from a UseMod page/ directory and attempts to convert UseMod markups into their PmWiki equivalents (although some work is probably still needed here). Note: This is still somewhat preliminary and could use improvements to make the conversion more complete. Report difficulties to the pmwiki-users mailing list or to pmichaud@pobox.com.
To use this script, try the following: Step 0: It's always a good idea to have a clean backup of your existing UseMod and/or PmWiki installations before attempting this. Step 1: Make sure you have a working PmWiki 2.0 installation. Step 2: Download the usemod.phpΔ script and place it in the PmWiki 2.0's cookbook/ directory. Step 3: Add the following lines to PmWiki's local/config.php file, replacing "/path/to/usemod/page" with the location of your UseMod installation's page/ directory (containing the various page files).
include_once('cookbook/usemod.php');
UseModPageDir("/filesystem/path/to/usemod/page", "UseMod");
The second argument to the UseModPageDir() function above is the name of the PmWiki WikiGroup in which the UseMod pages should be placed (UseMod doesn't support WikiGroups). Step 4: After making the above change, all of your UseMod pages should appear within the UseMod wiki group of your PmWiki installation (or whatever group you specified above). You can safely experiment with editing and browsing pages in the PmWiki site without affecting your UseMod installation. Step 5: If you wish, you can perform local customizations on the PmWiki 2 site to get it to look more like your UseMod pages -- this includes changing skins or adding other features. Step 6: If you're comfortable with the automated conversion and want to go ahead and convert all of the UseMod pages into the PmWiki database, change the
include_once('cookbook/usemod.php');
ConvertUseModPageDir("/filesystem/path/to/usemod/page", "UseMod");
Running the PmWiki script will then bring up some forms to allow you to bulk migrate some or all of the UseMod pages to PmWiki 2.0. After you've converted the pages, you can then just eliminate the above two lines from your configuration and the PmWiki site will then be running standalone. Notes
Comments
Contributors
|