[pmwiki-users] Pagelist definition problem (fixed?)

Patrick R. Michaud pmichaud at pobox.com
Fri Oct 6 11:38:39 CDT 2006


On Fri, Oct 06, 2006 at 11:18:22AM -0500, Patrick R. Michaud wrote:
> On Fri, Oct 06, 2006 at 10:52:56AM -0400, Crisses wrote:
> > I get a list in the right format, but the part I want to group on  
> > just repeats:
> > 
> > http://similepedia.com/index.php/Category/Period-20thCentury
> > http://similepedia.com/index.php/Category/Publisher-PenguinBooks
> 
> ******ICK!*******  
> 
> I found part of the problem, and it's ugly.
> 
> It's the 'and' in "Of Mice and Men" that is messing things up.
> The complex expression parser doesn't (yet?) recognize quotes -- 
> it just separates things based on the predefined operators
> 
>     &&  ||  (   )  !  and  or  xor
> 
> So, since {$:Work} contains the string ' and ', it's being treated
> as an operator in the complex expression and breaking the expression.

A short-term workaround might be to eliminate and/or/xor from
complex conditional expressions.  Try the following in local/config.php:

    $CondExprOps = '&&|\\|\\||[!()]';

Then (:if expr ... :) will separate things only on 
&&, ||, !, and parens.

Pm




More information about the pmwiki-users mailing list