[pmwiki-users] (:pagelist group=...:) seems broken
jo at durchholz.org
Tue Apr 12 05:14:33 CDT 2005
Patrick R. Michaud wrote:
> On Mon, Apr 11, 2005 at 10:58:19PM +0200, Joachim Durchholz wrote:
>> Funny. The docs on http://www.pmwiki.org/wiki/PmWiki/Directives#pagelist
>> give me that group= syntax.
> I didn't write (nor have I reviewed) those docs, sorry.
Well, it *did* work for me... and obviously for others as well, else
that group= syntax would never have made it into the docs.
Ah well, it's going to be rewritten anyway...
>>> $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
>> I'd rather try to avoid overloading existing standard ways of doing
>> things. How about the following:
>> (:pagelist list=special:)
>> How would I do that?
> # same settings as fmt='normal'
> $SearchPatterns['special'] = '!\.(All)?Recent(Changes|Uploads)$!';
> $SearchPatterns['special'] = '!\.Group(Print)?(Header|Footer|Attributes)$!';
> # additional settings for excluding special groups
> $SearchPatterns['special'] = '!^(PmWiki|PmWikiDe|Test|Main)\\.!';
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?
More information about the pmwiki-users