[pmwiki-users] Two problems with sharing pages
jamesdevain at mail.com
Fri Mar 14 22:08:48 CDT 2008
I'm trying to use shared groups in my wikifarm, and am having two problems.
What I want to do: Have all the fields in my farm share pages from the group "Customs". I'd
also like newly created pages for Customs to be automatically stored in the folder
"shared.d-Customs", so that any new pages created in the Customs group will automatically
be stored in shared.d-Customs, regardless of which field the page was created in.
So, to share those pages, I have this in my farmconfig file:
$LockFile = "$FarmD/shared.d/.flock";
$WikiLibDirs = array(
new PageStore('$FarmD/shared.d-Customs/$FullName', 1),
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');
1. I cannot include any non-shared pages in the Customs group. For example,
(:include Main.HomePage:) does nothing when used on Customs.HomePage.
2. When I create a new group from *within* the Customs group - for example, if I create
a new group with a Fox form or with (:newgroupbox:), and that form is on a Customs page -
then those new pages are stored in shared.d-Customs, and thus are shared.
Both of these problems do not occur if I disable Customs.php, so that seems to be the culprit.
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.
Also, as suggested by Jean-Fabrice, I tried using this in Customs.php:
$WikiDir = new PageStore($FarmD . '/shared.d-Customs/$FullName');
but it behaved the same way.
Anyone have any ideas about what could be causing this?
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!
More information about the pmwiki-users