Wiki Farms Advanced
administrators (advanced) Once you have a working WikiFarm? there are many additional features you can add. This page describes some of them briefly and provides links to more detailed pages.
This page is currently just a stub, and authors are encouraged to add appropriate content.
Existing pages that might belong here and could use a short explanation:
- Cookbook:FarmSecurity?
- Cookbook:FarmApacheConfiguration? (An attempt to secure a Pmwiki Farm from the apache configuration)
- Cookbook:FarmSideBar?
- Cookbook:IncludeFieldPage?
- Cookbook:SharedPages?
administrators (advanced) The WikiFarm? page describes only one way of configuring a wiki farm. There is no "right way" to set up a farm. Every scheme has its own advantages and disadvantages.
Here are some examples:
- Cookbook:FarmSetupByExample? (Nice, builds on the basic Farm setup)
- Cookbook:WikiFarmAlternative? (Very complex approach, Unix/Linux based)
- Cookbook:WikiFarmStepByStep? (Unix/Linux based, command-line instructions)
Answers from the pmwiki-users list
Is there a way to get the farmconfig.php to include a recipe in the local wiki and not the one in the wikifarm cookbook directory when both of the recipes have the same filename?
Yes, of course. The following are always true:
## load from local wiki
include_once('cookbook/recipe.php');
## load from farm wiki
include_once("$FarmD
/cookbook/recipe.php");
If you want to include a recipe from the farm cookbook only if it's not in the local cookbook, you can do:
if (file_exists('cookbook/recipe.php'))
include_once('cookbook/recipe.php');
else
include_once("$FarmD
/cookbook/recipe.php");
Pm
I would like to take advantage of 2.1.15 $LocalDir
to use the central pergroup/perpage customisation file (without having to create one in each field) but I don't see how I can have different config.php for each field this way.
Easy...near the end of farmconfig.php:
## disable PmWiki's local/config$EnableLocalConfig
= 0; ## explicitly include wikifield's local/config.php include_once('local/config.php'); ## change$LocalDir
for the per-group/per-page customizations ## (they will appear in /soft/pmwiki/local/Group.PageName.php)$LocalDir
= '/soft/pmwiki/local';
Categories: WikiFarms
This page may have a more recent version on pmwiki.org: PmWiki:WikiFarmsAdvanced?, and a talk page: PmWiki:WikiFarmsAdvanced-Talk?.