[Pmwiki-users] searchresults and pagelist questions
Patrick R. Michaud
pmichaud
Mon Oct 25 20:41:02 CDT 2004
On Fri, Oct 22, 2004 at 11:22:20PM +0200, Knut Alboldt wrote:
> First of all: I missed 2.0devel14 + 15, can't be true ! Was too busy !
> Ok, I've to implement this on monday morning.
>
> Back to my questions:
>
> 1) Is it possible (in 2.0.dev15) to specifiy a pagename filter (matchcode)
> in the searchresults or pagelist markup. I know, that you can filter by
> group (group= parameter) but is it also possible to search by
> pagename-matchpattern ?
Not yet.
> 2) what's the syntax for excluding pages with the SearchPatterns. Tried the
> following:
>
> $SearchPatterns[] = '/^PmWiki.*\./'; # exclude all pages from any
> PmWiki-Group (incl internat.)
$SearchPatters['default'] = '!^PmWiki.*\.!';
The use of exclamation points as the pattern delimiters tells PmWiki
this is a pattern to be excluded from the list rather than included.
Similarly:
$SearchPatterns['default'] = '!^BMIT\.!';
$SearchPatterns['default'] = '!\.GroupHeader$!'; # exclude all GroupHeaders
$SearchPatterns['default'] = '!\.GroupFooter$!';
$SearchPatterns['default'] = '!\.Template!'; # exclude all pages
# starting with "Template"
> 3) what can you specify with the list-parameter for these markups ?
The list= parameter specifies which set of $SearchPatterns you want to
use. The default is "list=default", other built-in choices are
"list=all" and "list=normal". (List=normal excludes RecentChanges,
GroupHeader, GroupFooter, etc.)
Pm
More information about the pmwiki-users
mailing list