Whither Thou SearchPatterns()? (WAS: [pmwiki-users] search results)

Benjamin Wilson ameen at dausha.net
Sat Jun 25 14:24:30 CDT 2005


Okay, once upon a time to add markup we directly accessed the variable.
Now, we use Markup(). All is right with the world.

Presently, if we want to enhance the search patterns, we access the
variable directly. What if the example below was:
SearchPaterns('default', '/^BookGroup\\.');?

Along those lines, what about passwords? From $DefaultPassword to:
Password('edit',crypt('shhhh'));.

Hans wrote:
> Friday, June 24, 2005, 6:01:13 PM, John wrote:
> 
>>I have limited the search function to one group (BookGroup) but
>>that action shows up in the search results window.
>>This indicates that there are "other" places to search and I would prefer that not show.
> 
> 
> limit the search function to BookGroup by placing in config.php:
> 
>     # Limit all searches to BookGroup group
>     $SearchPatterns['default'][] = '/^BookGroup\\./';
> 
> documentated at:
> http://www.pmwiki.org/wiki/PmWiki/OtherVariables#SearchPatterns
> 
> If you don't want the group name to appear in the searchresults list,
> you can put this in config.php as well:
> 
>     # no group names in search results
>     $FPLByGroupGFmt = "<dt></dt>";
> 
> 
> Best, 
> ~Hans                           
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users
> 
> 
> 
> 






More information about the pmwiki-users mailing list