[pmwiki-users] Group name variables

H. Fox haganfox at users.sourceforge.net
Sat Jan 28 15:35:32 CST 2006


On 1/28/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Sat, Jan 28, 2006 at 09:13:40AM -0700, H. Fox wrote:
> > On 1/24/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > > Starting with beta21, the ideal sequence will be something like:
> > >
> > >     $pagename = InitPageName($pagename);
> > >     $group = PageVar($pagename, '{$Group}');
> > >
> > > which will first resolve $pagename to its "correct" value
> > > (based on $DefaultPage, $DefaultGroup, UTF-8 settings, etc.)
> > > and then obtain the group.
> >
> > There's no InitPageName() function in beta21. Is the something like it?
>
> 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}');

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

Hagan




More information about the pmwiki-users mailing list