[pmwiki-users] scope of search results
Petko Yotov
5ko at 5ko.fr
Thu Feb 25 01:52:52 CST 2016
See the variable $SearchPatterns:
http://www.pmwiki.org/wiki/PmWiki/PagelistVariables#SearchPatterns
For example, to prevent results from the groups PmWiki, Site and
SiteAdmin, you could add to config.php:
$SearchPatterns['default'][] = '!^(PmWiki|Site|SiteAdmin)\\.!';
Petko
---
Change log : http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes : http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade : http://www.pmwiki.org/wiki/PmWiki/Upgrades
On 2016-02-25 02:00, Jim Medlen wrote:
> How do I set the scope of a search of my pmwiki site to only display
> results
> from pages that I have created? Or stated differently how would I
> prevent
> results from default PmWiki pages ?
>
> This is a form that I created on a static html page on my site.
>
> <form class='wikisearch'
> action='http://www.area22indiana.org/pmwiki/pmwiki.php?n=Site.Search'
> method='get'>
> <input type='hidden' name='n' value='Site.Search' />
> <input type='hidden' name='action' value='search' />
> <input type='text' name='q' value='' class='inputbox searchbox'
> size='14' />
> <input type='submit' id='searchbutton' value='Search Meetings' />
> </form>
>
> Results of search for peru:
> Meetings /
> District55
> District57
> PmWiki /
> FilePermissions
> Installation
More information about the pmwiki-users
mailing list