[pmwiki-users] Removing wikilib.d from searches

pmwiki at 911networks.com pmwiki at 911networks.com
Thu Nov 16 17:17:47 CST 2006


On Thu, 16 Nov 2006 19:32:20 +0000
Hans <design5 at softflow.co.uk> wrote:

> Thursday, November 16, 2006, 7:14:52 PM, Sandy wrote:
> 
> > I would like people who have not logged in to search only the
> > wiki they are in. Any ideas?
> 
> An easy way: exclude certain groups in (:searchbox:):
> 
> (:searchbox group=-PmWiki,-Site :)
What about:
Take a look at the groups from the wikilib.d and add them to
the local/config.php. Here is mine:

# ###############################################################
## Exclude Certain pages / groups from search results.
# ###### For production only #######
$SearchPatterns['default'][] = '!\\.(All)?Recent(Changes|Uploads|Comments)$!';
$SearchPatterns['default'][] = '!\\.Group(Print)?(Header|Footer|Attributes)$!';
$SearchPatterns['default'][] = '!\\.(Left|Right|Side)(Bar|Menu|Note)$!';
$SearchPatterns['default'][] = '!^Site\\.!';
$SearchPatterns['default'][] = '!^PmWiki\\.!';

# ###############################################################


-- 
Thanks
http://www.sqlhacks.com
The SQL knowledge base




More information about the pmwiki-users mailing list