[Pmwiki-users] How to set a group exclusion array for pagelist
John Feezell
JohnFeezell
Thu Nov 18 22:37:41 CST 2004
On Thu, 18 Nov 2004 20:35:42 -0700, Patrick R. Michaud
<pmichaud at pobox.com> wrote:
> 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
>
Thanks. I thought it was something like that but couldn't get the
syntax correct.
/JF
More information about the pmwiki-users
mailing list