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

Pico pmwiki at ben-amotz.com
Thu Aug 31 21:03:31 CDT 2006


Michael Gleicher 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.

You should be modifying the (:searchresults:) directive, rather than the 
(:searchbox:) directive.

If you have (:searchresults group=-PmWiki, -Site:) in your Site/Search 
page then all searches that use that page will be modified to exclude 
those groups.  That includes both the searchbox that appears in the 
Site/Search page, and the searchbox that appears on the header of your 
skin.  (Also any other searchbox on any other page that doesn't have its 
own searchresults directive).

Take a look at PmWiki/Search and PmWiki/PageLists for more info.

Pico




More information about the pmwiki-users mailing list