[pmwiki-users] exclude some pages from RecentChanges

Patrick R. Michaud pmichaud at pobox.com
Mon Jan 30 10:42:37 CST 2006


On Mon, Jan 30, 2006 at 11:25:32AM -0500, Neil Herber wrote:
> At 2006-01-30  10:10 AM -0600, Patrick R. Michaud is rumored to have said:
> >Just create a per-page localization file that contains:
> >
> >    <?php
> >      $RecentChangesFmt = array();
> >
> >This will prevent the page(s) from being added to the
> >RecentChanges pages.
> 
> Pardon my lack of PHP know-how, but does this also prevent entry in 
> AllRecentChanges? Can it be rewritten to *only* exclude AllRecentChanges?

Yes, the above basically says to not make any entries in any RecentChanges
pages, so neither {$Group}.RecentChanges nor Site.AllRecentChanges are
updated.

To exclude just Site.AllRecentChanges, one would use

    unset($RecentChangesFmt['Site.AllRecentChanges']);


> If done as a per-group localization, will it exclude all pages in the group?

Yes.

> Does this require the latest version of PmWiki? (I still have 2.0.12 
> deployed).

It works for any PmWiki 2.x.x install.  

> Does this replace the following code that I use in a group-level 
> config file "private.php"?
> 
> <?php if (!defined('PmWiki')) exit();
> ##  This is here to kill recording of Private stuff in AllRecentChanges
> unset($RecentChangesFmt['Site.AllRecentChanges']);
> ?>

Only if you want to eliminate the per-group RecentChanges page as
well as Site.AllRecentChanges.  I suspect you want to keep what you have
now.

Pm




More information about the pmwiki-users mailing list