[pmwiki-users] Two problems with sharing pages

Eemeli Aro eemeli at gmail.com
Sat Mar 15 06:52:21 CDT 2008


On Sat, Mar 15, 2008 at 5:08 AM, James DeVain <jamesdevain at mail.com> wrote:
>  So, to share those pages, I have this in my farmconfig file:
>
>  $LockFile = "$FarmD/shared.d/.flock";
>  $WikiLibDirs = array(
>   &$WikiDir,
>         new PageStore('$FarmD/shared.d-Customs/$FullName', 1),
>         new PageStore('$FarmD/wikilib.d/$FullName'));
>
>  Also, to have newly created pages go into the shared folder, this is what I have in
>  Customs.php, which goes in the "local" folder for each field:
>
>  $WikiDir = new PageStore('$FarmD/shared.d-Customs/$FullName');
>
>  [snip]
>
>  I can understand why new pages for other groups are stored in the "shared.d-Customs" folder,
>  because that's what I told it to do (and I can live with that, but it would be nice to get it
>  cleared up). What I don't get is why I can't include pages from non-shared groups, like Main.

Think of what WikiLibDirs looks like when you're inside the Customs
group. Since you've redefined WikiDir, how can PmWiki know where to
look for pages from other groups?

Try replaing the Customs.php line with the following:

$WikiLibDirs = array(
  new PageStore('$FarmD/shared.d-Customs/$FullName', 1),
  &$WikiDir,
  new PageStore('$FarmD/wikilib.d/$FullName')
);

eemeli



More information about the pmwiki-users mailing list