[pmwiki-users] (:pagelist group=...:) seems broken

Patrick R. Michaud pmichaud at pobox.com
Tue Apr 12 07:48:20 CDT 2005


On Tue, Apr 12, 2005 at 12:14:33PM +0200, Joachim Durchholz wrote:
> >>>  $SearchPatterns['normal'][] = '!^(PmWiki|PmWikiDe|Test|Main)\\.!';
> 
> An additional question: what is being searched here, the entire page or 
> just the page name? (I'm a bit anxious because my servers have low-end 
> CPUs...) (Given how the pattern is written, it's probably just the page 
> name.)

The page name.

> Hmm... I'd like to do
> 
>   $SearchPatterns['special'] = $SearchPatterns['normal'];
>   $SearchPatterns['special'][] = '!^(PmWiki|PmWikiDe|Test|Main)\\.!';
> 
> so that this stays compatible with future PmWiki upgrades.
> Any pitfalls here?

Only that $SearchPatterns['normal'] doesn't exist until after the
pagelist.php file is loaded (which by default comes after local 
customizations).  However, you can do

   include_once("$FarmD/scripts/pagelist.php");
   $SearchPatterns['special'] = $SearchPatterns['normal'];
   $SearchPatterns['special'][] = '!^(PmWiki|PmWikiDe|Test|Main)\\.!';

and it'll work just fine.

Pm



More information about the pmwiki-users mailing list