[pmwiki-users] Q: preferred way to include wiki pages with recipes
John Rankin
john.rankin at affinity.co.nz
Wed Aug 17 16:45:26 CDT 2005
A list discussion a while ago covered the question of how to
distribute wiki pages with a skin. Could I get confirmation
that the following is the recommended approach for recipes:
1. place the pages into cookbook/recipe/wikilib.d/
2. include the following code fragment
function ActivateRecipePageLib($recipe) {
global $WikiLibDirs;
$where = count($WikiLibDirs);
if ($where>1) $where--;
array_splice($WikiLibDirs, $where, 0,
new PageStore("cookbook/$recipe/wikilib.d/\$FullName"));
}
The function should probably be generalised so 'cookbook'
and 'wikilib.d' are variables.
Such a function would be useful in the pmwiki core.
Or is there another, better approach?
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list