[pmwiki-users] Group name variables

Patrick R. Michaud pmichaud at pobox.com
Sat Jan 28 17:45:29 CST 2006


On Sat, Jan 28, 2006 at 02:35:32PM -0700, H. Fox wrote:
> On 1/28/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > It became "ResolvePageName()" instead -- it's more descriptive
> > of what is happening.
> 
> It is.  How does one acquire the group name, then?  (Will it be the
> same for config.php and skin.php?) The following doesn't seem to work.
> 
>     $pagename = ResolvePageName($pagename);
>     $group = PageVar($pagename, '{$Group}');

In skin.php it's not necessary to call ResolvePageName, as the
pagename is already "resolved".

> Out of curiosity, why isn't ResolvePageName()'s job already done ahead
> of config.php in the cascade?

PmWiki can't know how to resolve $pagename until after config.php
is done.  In particular, the admin could choose to set custom
values for $DefaultGroup, $DefaultName, $DefaultPage, or $PagePathFmt,
all of which affect the resolution of $pagename.

Pm




More information about the pmwiki-users mailing list