Re: [pmwiki-users] Excluding anything but Main group from searches

2007-05-10 Thread Patrick R. Michaud
On Thu, May 10, 2007 at 01:24:21PM +0100, Hans wrote: Do we have comprehensive documentation about how to exclude anything but the Main group pages from searches? Isn't it just...? $SearchPatterns['default']['main'] = '/^Main\./'; $SearchPatterns['default']['sandbox'] =

Re: [pmwiki-users] Excluding anything but Main group from searches

2007-05-10 Thread Hans
Thursday, May 10, 2007, 1:32:57 PM, Patrick R. Michaud wrote: Isn't it just...? $SearchPatterns['default']['main'] = '/^Main\./'; $SearchPatterns['default']['sandbox'] = '!^Main\.WikiSandbox$!'; Hmm, yes, thank you! I chnaged it to: if(CondAuth($pagename,'read')) {

Re: [pmwiki-users] Excluding anything but Main group from searches

2007-05-10 Thread Patrick R. Michaud
On Thu, May 10, 2007 at 02:24:19PM +0100, Hans wrote: Thursday, May 10, 2007, 1:32:57 PM, Patrick R. Michaud wrote: Isn't it just...? $SearchPatterns['default']['main'] = '/^Main\./'; $SearchPatterns['default']['sandbox'] = '!^Main\.WikiSandbox$!'; Hmm, yes, thank you! I

Re: [pmwiki-users] Excluding anything but Main group from searches

2007-05-10 Thread Patrick R. Michaud
On Thu, May 10, 2007 at 06:27:37PM +0100, Hans wrote: Thursday, May 10, 2007, 2:48:34 PM, Patrick R. Michaud wrote: I would've done the above as: if (!CondAuth($pagename, 'edit')) { $SearchPatterns['default']['main'] = '/^Main\./'; $SearchPatterns['default']['sandbox'] =

Re: [pmwiki-users] Excluding anything but Main group from searches

2007-05-10 Thread Hans
Thursday, May 10, 2007, 6:31:36 PM, Patrick R. Michaud wrote: $SearchResultsFmt = div class='wikisearch'$[SearchFor] div class='vspace'/div\$MatchList/div; You can also provide a custom $[SearchFound] translation. Thank you. It actually worked fine and showed only the total number of