[pmwiki-users] the searchbox on the default template...

Tegan Dowling tmdowling at gmail.com
Thu Aug 31 18:55:10 CDT 2006


On 8/31/06, Michael Gleicher <gleicher at cs.wisc.edu> wrote:
> Is there a way to modify the searchbox on the default page template so
> that it does a non-standard search?
>
> On my search page (Site/Search), I have:
>         (:searchbox group=-PmWiki,-Site:)
>
> But the box on top of each page searches the whole Wiki, which I don't
> really want.

See http://www.pmwiki.org/wiki/Cookbook/SearchPatterns

What search terms did you use when you tried to find this - maybe you
could add them to the page?

On my CMS-like wikis, I have a pretty elaborate set of restrictions
set in my config.php files:

             $SearchPatterns['forum'][] =
'!\.(All)?Recent(Changes|Uploads|Comments)$!';
                 $SearchPatterns['forum'][] =
'!\.Group(Print)?(Header|Footer|Attributes)$!';
                 $SearchPatterns['forum'][] = '!\.HomePage$!';
                 $SearchPatterns['forum'][] =
'!\.(Left|Right|Side)(Bar|Menu|Note)$!';

                $SearchPatterns['normal'][] =
'!\.(Left|Right|Side)(Bar|Menu|Note)$!';
            $SearchPatterns['normal'][] =
'!\.(All)?Recent(Changes|Uploads|Comments)$!';
                $SearchPatterns['normal'][] =
'!\.Group(Print)?(Header|Footer|Attributes)$!';

                $SearchPatterns['default'][] = '!^Site\\.!';
                $SearchPatterns['default'][] = '!^PmWiki\\.!';
                $SearchPatterns['default'][] = '!^Templates\\.!';
                $SearchPatterns['default'][] = '!^Profiles\\.!';
                $SearchPatterns['default'][] = '!^Contributions\\.!';




More information about the pmwiki-users mailing list