[pmwiki-users] Get rid of page not exist message

Patrick R. Michaud pmichaud at pobox.com
Fri Jun 2 15:14:40 CDT 2006


On Fri, Jun 02, 2006 at 12:43:54PM -0700, Martin Fick wrote:
> --- "Patrick R. Michaud" <pmichaud at pobox.com> wrote:
> 
> > > Is there some way to get rid of the following
> > > warning message and just
> > > go straight to the page (the headers and footers
> > > construct the entire
> > > page automatically).  This would need to be done
> > > for groups, perhaps
> > > in a local.php file?
> > 
> > Maybe change the Site.PageNotFound page, which says what to
> > display whenever someone arrives at a non-existent page?
> 
> And I guess the Site.PageNotFound could have an
> 
> (:if ! group special_group :)
>   ...
> (:if:)
> 
> around the normal contents to prevent it from being
> displayed in this specific case.
> 
> I guess that is nicer than my other idea: a
> Group.PageNotFound. :)

Oh, a Group.PageNotFound is also possible.  :-)

In local/config.php:

    $DefaultPageTextFmt =
      '(:include {$Group}.PageNotFound {$SiteGroup}.PageNotFound:)';

This uses PageNotFound in the current group if it exists, otherwise
it uses Site.PageNotFound.

Pm




More information about the pmwiki-users mailing list