[pmwiki-users] modifying a search

Hans design5 at softflow.co.uk
Tue Oct 7 14:48:39 CDT 2008


Tuesday, October 7, 2008, 7:30:29 PM, Ian MacGregor wrote:

> How do I modify ?action=search and (:searchbox:) so that they ignore a
> certain group?

from http://www.pmwiki.org/wiki/Cookbook/SearchResults  :

To change the default listings to exclude RecentChanges, AllRecentChanges,
GroupHeader, and etc., use [add to config.php] something like:

$SearchPatterns['default'][] = '!\\.(All)?Recent(Changes|Uploads)$!';
$SearchPatterns['default'][] = '!\\.Group(Print)?(Header|Footer|Attributes)$!';

Similarly, you can exclude groups.

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

(excludes Site and PmWiki groups from default searches)

hope this helps!
  ~Hans




More information about the pmwiki-users mailing list