[pmwiki-users] How to exclude Draft pages from RecentChanges?

Patrick R. Michaud pmichaud at pobox.com
Tue Apr 18 12:20:20 CDT 2006


On Tue, Apr 18, 2006 at 06:18:52PM +0200, Roman wrote:
> To eliminate possible dependencies I tried fresh installation of
> version 2.1.5 with following (and the only) lines in config.php
> 
> $EnableDrafts = 1;
> if (substr($pagename, -6) == '-Draft')
>   $RecentChangesFmt = array();
> 
> and draft pages are still being logged.

Oh, yeah.  The problem is that when a draft is first created,
the pagename doesn't have "-Draft" in it (it's the page the
draft is being created from).

I'll have to see if I can come up with a different/better solution.
It's probably possible to do it with a special-purpose $EditFunction.

Pm

> On 4/18/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> > On Tue, Apr 18, 2006 at 04:45:12PM +0200, Roman wrote:
> > > If we want to exclude page of a known name from RecentChanges we can
> > > use local configuration files for that. But how to exclude all Draft
> > > pages? I put following lines to config.php but it does not work.
> > >
> > > if (substr($pagename, -6) == '-Draft')
> > >   $RecentChangesFmt = array();
> >
> > Seems like that ought to work.  Keep in mind that this change
> > won't remove any existing -Draft pages listed in RecentChanges,
> > it just prevents new ones (or updates) from appearing.
> >
> > Pm
> >
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
> 




More information about the pmwiki-users mailing list