Steps required to install the Wiki Farm modification into an existing PmWiki installation. This is a work-in-progress
The Wiki Farm recipe consists of the following directories:
- local/wikifarm-config/ is the scripts required to run the farm
- wikilib.d/ is a set of default farm pages
- wikifarm/ is a template based on the standard PmWiki skin
- local/wikifarm/ includes a sample field configuration file
- PmWiki.Wiki Farm is a page describing the farm model
- Download the Wiki Farm scripts: fieldlist.php, fieldname.php, fieldconf.php, fieldsetup.php, fieldcust.php and sharedgroups.php. Copy wikifarm-config/ into local/.
- Add include statements to load them from local/config.php, in the order listed above. The wikifarm-pre.php and wikifarm-post.php scripts include the right scripts in the right order.
- chmod 02777 your PmWiki directory.
- Access the wiki once. The wikifarm/ directory will be created. After this you may reset the permissions of your PmWiki directory.
- Copy the wikifarm/ directory into pub/skins/
- Copy the wikilib.d/ directory that comes with Wiki Farm into the wikifarm/ directory. This includes a set of Main pages and the PmWiki Quick Reference? pages, which are needed by the upload and edit screens.
- Copy the wikifarm/ directory into local/. This is where $Field.config.php, $Field.$Group.php and $Field.$Group.$Page.php configuration files go.
- Copy PmWiki.Wiki Farm into the main wikilib.d/ and edit and save it — that way, it won’t get over-written next time you do a PmWiki upgrade
- Using the normal PmWiki web interface, create a page called Main.Wiki Farm?. In it, add a bullet list of links to fields that you want to create. Only fields linked to by this page will exist in the Wiki Farm.
- Optionally, add a bullet list of links to the homepages of groups that you wish to be shared among all fields. By default, a new farm shares Profiles and PmWiki. If you want to share other groups, you don’t need to include Profiles and PmWiki in the list.
This has been implemented.