[pmwiki-users] $DefaultPageTextFmt

Patrick R. Michaud pmichaud at pobox.com
Fri Jan 6 15:16:36 CST 2006


On Fri, Jan 06, 2006 at 09:01:19PM +0000, Hans wrote:
> Friday, January 6, 2006, 8:56:40 PM, Patrick wrote:
> > What version of PmWiki?  I recall running into a bug related
> > to this somewhere.
> 
> pmwiki-2.1.beta17
> 
> > $DefaultPageTextFmt may change radically as we deal with the
> > whole PageNotFound issue.
> 
> okay. But is there a problem with extracting the group?
> How do you get a simple group switch in config.php:
> 
>    if($Group==SomeGroup) { group specific stuff... }

Although FmtPageName('$Group', $pagename) is *supposed* to
work, the more standard (and faster) mechanism is

   $group = PageVar('$Group', $pagename);

I have to figure out how to handle this when $pagename is
null, but again this is all linked to the PageNotFound
handling that I'm still redesigning.

Pm




More information about the pmwiki-users mailing list