[pmwiki-users] Searchpattern to find Documents, Forms etc... and custom sort-orders?

H. Fox haganfox at gmail.com
Mon Aug 15 14:46:59 CDT 2005


On 8/15/05, Thorralf Schuh <thorralf at gmx.de> wrote:
> Hi Folks,
> 
> I work on  a wiki that is going to be a platform to let people search
> for texts and forms. I want to have the documents listed with no "Recent
> Changes" and other operating  wikipages... just the pure contents... is
> that possible?

Yes. Try this in your config.php:

## Exclude Certain pages / groups from search results.
$SearchPatterns['default'][] = '!\\.(All)?Recent(Changes|Uploads)$!';
$SearchPatterns['default'][] = '!\\.Group(Print)?Header$!';
$SearchPatterns['default'][] = '!^Site\\.!';
$SearchPatterns['default'][] = '!^PmWiki\\.!';
 
Ironically, I added that to the SearchResults cookbook page yesterday.
 It's also in the FAQ, but as part of an answer to a slightly
different question.

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

> Is there a possibility to search a specified directory for PDF-Names as
> well?

(:attachlist ext=pdf:)
or
(:attachlist GroupName ext=pdf:)

Hagan




More information about the pmwiki-users mailing list