[pmwiki-users] Ingredients . . .

Patrick R. Michaud pmichaud at pobox.com
Wed Feb 8 17:30:36 CST 2006


On Tue, Feb 07, 2006 at 10:16:19PM +0100, christian.ridderstrom at gmail.com wrote:
> > > >   ## Get the name of this group (like {Group}) and page (like {$Name})
> > > >   $pagename = ResolvePageName($pagename);
> > > >   $group = PageVar($pagename, '$Group');
> > > >   $name = PageVar($pagename, '$Name');
> > > 
> > > Slightly off-topic here... is there a drawback to the solution above?
> > > What I mean is that it (partly as a side-effect) assigns $pagename which 
> > > might not be desired, or?
> > 
> > There's not really a drawback that I can see.  Even if the admin doesn't
> > perform $pagename = ResolvePageName($pagename), then PmWiki will do it
> > as soon as local.php has finished executing so that it can then start
> > loading per-group and per-page customizations.
> 
> Does that imply that the variable $pagename is 'globally' available for 
> per-group and per-page customization scripts?

Pretty much.

> Btw, is this "flow" of how scripts are invoked documented somewhere? It 
> might be useful to be able to refer to it when saying something like:

http://www.pmwiki.org/wiki/PmWiki/WikiCascades seems to have it.

Pm




More information about the pmwiki-users mailing list