[pmwiki-users] Fwd: Re: how to exclude pages with a certain extension from
Florian Fischer
Flori-Fischer at gmx.net
Thu Nov 16 03:48:54 CST 2006
-------- Original-Nachricht --------
Datum: Thu, 16 Nov 2006 10:35:01 +0100
Von: "Florian Fischer" <Flori-Fischer at gmx.net>
An: Stirling Westrup <sti at pooq.com>
Betreff: Re: [pmwiki-users] how to exclude pages with a certain extension from
-------- Original-Nachricht --------
Datum: Mon, 13 Nov 2006 12:53:10 -0500
Von: Stirling Westrup <sti at pooq.com>
An: pmwiki-users at pmichaud.com
Betreff: Re: [pmwiki-users] how to exclude pages with a certain extension from
> 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\$!";
>
>
>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
This works fine. But there's one problem. I would like to make these pages visible in searchresults if the user is an admin. Is there a way to manage this?
Florian
--
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
--
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
More information about the pmwiki-users
mailing list