[Pmwiki-users] How to set a group exclusion array for pagelist

Patrick R. Michaud pmichaud
Thu Nov 18 20:35:47 CST 2004


On Thu, Nov 18, 2004 at 08:37:08PM -0600, John Feezell wrote:
> I'm wondering if there is a easy way to create
> an exclusion array for groups to feed to (:pagelist:)
> like $SearchPatterns.
> Any pointers gladdly received.

$SearchPatterns works on full pagenames, not just the part after
the group.  So if you want to exclude the PmWiki group by default:

    $SearchPatterns['default'][] = '!^PmWiki\.!';

If you want to exclude the PmWiki group from the "normal" page 
listings (i.e., via list=normal):

    $SearchPatterns['normal'][] = '!^PmWiki\.!';

And if you want to create a list=restricted option that excludes a 
certain set of groups...

    $SearchPatterns['restricted'][] = '!^(Secret|XXX|Verboten)\.!';

Pm



More information about the pmwiki-users mailing list