[pmwiki-users] Problem with shared groups

James DeVain jamesdevain at mail.com
Tue Mar 11 17:10:49 CDT 2008


> In order to share new pages created in the group "Whatever" across all
> wikis in my farm, I'm using this:
> 
> $WikiDir = new PageStore('$FarmD/shared.d-Whatever/$FullName');
> 
> in a group customization file (Whatever.php) in each field's "local"
> folder. It works fine in most cases - I create a new page in the group
> "Whatever", and it is sent to the "shared.d-Whatever" folder.
> 
> The problem is when I create a new page (or pages) for a group *from*
> the group "Whatever" - for example with Fox or NewGroupBox. In those
> cases, the new pages are placed in the "shared.d-Whatever" folder.
> 
> For example, if I use a fox form to create a new group named "People",
> then the new "People" pages are stored in the "shared.d-Whatever" folder.
> 
> Also, if it helps, I'm using this in my farmconfig.php file:
> 
> 
> $LockFile = "$FarmD/shared.d/.flock";
> $WikiLibDirs = array(
>    &$WikiDir,
>       new PageStore('$FarmD/shared.d-Whatever/$FullName', 1),
>       new PageStore('$FarmD/wikilib.d/$FullName'));
> 
> Does anyone know of a fix for this? I would be grateful for any ideas.
> 
> 

> > ----- Original Message -----
> > From: "Jean-Fabrice [gmail]" <jeanfabrice at gmail.com>
> > To: "James DeVain" <jamesdevain at mail.com>
> > Subject: Re: [pmwiki-users] Problem with shared groups
> > Date: Tue, 11 Mar 2008 08:05:27 +0100
> > 
> > 
> > 2008/3/11, James DeVain <jamesdevain at mail.com>:
> > 
> > >  $WikiDir = new PageStore('$FarmD/shared.d-Whatever/$FullName');
> > >
> > Have you tried $WikiDir = new PageStore($FarmD .
> > '/shared.d-Whatever/$FullName'); ?
> > 
> > >  Also, if it helps, I'm using this in my farmconfig.php file:
> > >
> > >
> > >  $LockFile = "$FarmD/shared.d/.flock";
> > >  $WikiLibDirs = array(
> > >    &$WikiDir,
> > >       new PageStore('$FarmD/shared.d-Whatever/$FullName', 1),
> > >       new PageStore('$FarmD/wikilib.d/$FullName'));
> > 
> > I don't know it it can help, but $FarmD is a php variable while
> > $FullName is not.
> > So you should probably write :
> >    $WikiLibDirs = array(
> >      &$WikiDir,
> >         new PageStore($FarmD . '/shared.d-Whatever/$FullName', 1),
> >         new PageStore($FarmD . '/wikilib.d/$FullName'));
> > 
> > JF

Thanks, JF. I tried your suggestions, but it doesn't seem to make a
difference. 

James

-- 
Want an e-mail address like mine?
Get a free e-mail account today at www.mail.com!




More information about the pmwiki-users mailing list