[pmwiki-users] how to exclude pages with a certain extension from
Stirling Westrup
sti at pooq.com
Mon Nov 13 11:53:10 CST 2006
Florian Fischer wrote:
> Hello,
>
> i have to exclude drafts from the searchresults, but i don't know the syntax.
> i tried it with
> $SearchPatterns['default'][] = '!^MyGroup\\.*-draft$!';
>
> any ideas?
>
> Florian
Try
$SearchPatterns['default'][] = '!-Draft$!';
or, better yet
$DraftSuffix = '-Draft';
$SearchPatterns['default'][] = "!$DraftSuffix\$!";
More information about the pmwiki-users
mailing list