[pmwiki-users] Problem with SearchPatterns

Patrick R. Michaud pmichaud at pobox.com
Thu Mar 30 07:44:42 CST 2006


On Thu, Mar 30, 2006 at 10:39:35AM +0100, Ian Barton wrote:
> I am doing some hacking with blogsimple.php so I can use it with my 
> daily journal. I have got things working OK except for excluding pages 
> in PageList.
> 
> My main page consists of:
> 
> (:PageList group=Journal fmt=#include list=journal order=-name count=10 :)
> 
> In blogsimple.php I have:
> 
> $SearchPatterns['journal'][] = '!\\.(All)?Recent(Changes|Uploads|Pages)$!';
> $SearchPatterns['journal'][] = '!\.RecentChanges$!';
> $SearchPatterns['journal'][] = '!\.GroupHeader$!';
> $SearchPatterns['journal'][] = '!\.GroupFooter$!';
> $SearchPatterns['journal'][] = '!\.GroupAttributes$!';
> $SearchPatterns['journal'][] = '!\.SideBar$!';
> $SearchPatterns['journal'][] = '!\.RightBar$!';
> $SearchPatterns['journal'][] = '!\.PageTopMenu$!';
> $SearchPatterns['journal'][] = '!\.PageFootMenu$!';
> $SearchPatterns['journal'][] = '!\.HomePage$!';
> $SearchPatterns['journal'][] = '!\.JournalPages$!';
> $SearchPatterns['journal'][] = '!\.JournalArchive$!';
> $SearchPatterns['journal'][] = '!\.JournalCategories$!';
> $SearchPatterns['journal'][] = '!\.JournalComments$!';
> $SearchPatterns['journal'][] = '!\.JournalArchiveTemplate$!';
> $SearchPatterns['journal'][] = '!\.JournalCategoriesTemplate$!';
> $SearchPatterns['journal'][] = '!\.JournalListTemplate$!';

All of the above looks okay to me, so I'm not sure why it's not
working for you.  You might check to make sure that you're accessing
the global $SearchPatterns variable and not one that is local to
a function.

Pm




More information about the pmwiki-users mailing list