[pmwiki-users] Search field in farm only

Hans design at flutesong.fsnet.co.uk
Thu Jul 21 09:45:22 CDT 2005


Thursday, July 21, 2005, 3:20:37 PM, K.A.Bouton wrote:
> So from a searchbox in Field1.Dev.Page1 I want all results from the
> Field1.Dev.* and Field1.Prod* pages and no results returned from Field2 or
> PmWiki.*.*

A (:searchbox:) markup on a page when used will search the pages of
the field it is in, never any other fields (multiple field searches
are not possible at present).

so you just need to exclude certain groups from the search, which you
can do by defining a searchpattern in config.php:
http://www.pmwiki.org/wiki/Cookbook/SearchPatterns

##Remove the 'Private' group from searches, by adding:

 $SearchPatterns['default'][] = '!^Private\.!';
 $SearchPatterns['all'][] = '!^Private\.!';
 $SearchPatterns['normal'][] = '!^Private\.!';



Best, 
~Hans                           





More information about the pmwiki-users mailing list