[pmwiki-users] $DefaultGroup and Name
Patrick R. Michaud
pmichaud at pobox.com
Mon Sep 11 17:27:35 CDT 2006
On Mon, Sep 11, 2006 at 11:05:04PM +0100, Marc Cooper wrote:
> Hi,
>
> I can't figure out why $DefaultGroup and $DefaultName are not taking for
> my fields. In the fields' /local/config.php, I have something like
>
> $DefaultGroup = 'Fred';
> $DefaultName = 'HomePage';
>
> (I also tried: $DefaultPage = 'Fred.HomePage'; )
>
> But when I use the URL, say:
>
> http://example.com/pmwiki/fieldname/
>
> the result is Main/HomePage.
>
> Neither of these fields is referenced in the farmconfig.php.
What *is* in the farmconfig.php?
If it's calling authuser.php, or if it or any scripts it calls
makes any calls to ResolvePageName(), then the values of
$DefaultPage and the pagename are being set before your field's
local/config.php has a chance to change them.
I can get you a configuration that will work; but need more
details about what's happening in the farmconfig.php in order
to do that.
Pm
P.S.: For those who may be thinking "why can't PmWiki figure this
out on its own", I'll just say that managing dependencies between
configuration scripts is a very difficult problem in general,
so there are a few things that PmWiki leaves to the wiki administrator
to figure out. Getting the correct value of $pagename is one
of them. :-(
More information about the pmwiki-users
mailing list