[Pmwiki-users] Newbie question - how to set the "root" page of a group

Patrick R. Michaud pmichaud
Thu Apr 8 09:49:18 CDT 2004


On Thu, Apr 08, 2004 at 09:47:36AM +0200, Nils Knappmeier wrote:
> 
> I know, that it's difficult to change this now, without having 
> compatibility problems, but I would recommend,
> either

The behavior that exists now is just the default behavior--it's
possible to override/redefine it in config.php to do exactly
what you want.  So, in config.php:

> 1) Removing this automatic, quiet redirecting behavior (so that you get 
> an edit form when the page doesn't exist)

    if (preg_match("/^($GroupNamePattern)[\\/.]$/",$pagename,$match)) {
      $pagename = $match[1].'.'.$match[1];

> 2) or going to the $DefaultTitle directly (not looking for the same 
> group name)

    if (preg_match("/^($GroupNamePattern)[\\/.]$/",$pagename,$match))
      $pagename = $match[1].".$DefaultTitle";

Pm



More information about the pmwiki-users mailing list