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

Joachim Durchholz jo at durchholz.org
Mon Apr 11 15:58:19 CDT 2005


Patrick R. Michaud wrote:

> No, it's just that at present there's not an "exclude group" syntax
> for pagelist.  Thus the line
> 
>     (:pagelist group= -PmWiki -PmWikiDe -Test -Main list=normal:)
> 
> Says to exclude every page that contains "PmWiki", "PmWikiDe", "Test", and "Main".
> That "group=" is probably causing a problem too.

Funny. The docs on http://www.pmwiki.org/wiki/PmWiki/Directives#pagelist 
give me that group= syntax.

Besides, I *had* it working with at least *roughly* the same syntax as 
given above. I even spent an afternoon testing various things and 
updating the docs.

> At present the only way to do group exclusion is to create a special "list"
> option for it.  You can do tell "list=normal" to exclude these groups via:
> 
>     $SearchPatterns['normal'][] = '!^(PmWiki|PmWikiDe|Test|Main)\\.!';
> 
> and then the pagelist function would be simply
> 
>     (:pagelist list=normal:)

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?

> If we want to have a way to exclude groups in (:pagelist:), the syntax
> will undoubtedly be
> 
>     (:pagelist group=-PmWiki,-PmWikiDe,-Test,-Main)
> 
> but that's not implemented yet.

I'd be very much for something like that.

Regards,
Jo



More information about the pmwiki-users mailing list