[pmwiki-users] Pagelist definition problem (fixed?)
Patrick R. Michaud
pmichaud at pobox.com
Fri Oct 6 20:04:11 CDT 2006
On Fri, Oct 06, 2006 at 03:54:59PM -0400, Crisses wrote:
> On Oct 6, 2006, at 3:01 PM, Patrick R. Michaud wrote:
>
> >>I can't tell you how many times I have pulled out my hair
> >>debugging pagelist templates just to finally realize I
> >>forgot the expr! I can't see that it would be intuitive
> >>for newbies?
> >
> >Yes, I totally understand -- I constantly see people putting
> >complex expressions in (:if:) and omitting the "expr", so it's
> >pretty clear that people don't think to include it.
>
> It may also be that the documentation isn't 100% clear about what
> "expr" is, does, and when it's required?
It could be that, but the people that I've seen omit the
'expr' did so because they simply forgot it was required,
not because they didn't understand when it was needed.
FWIW, the 'expr' conditional really works more like the
'test' or '[' commands in Unix shell environments than
anything else.
I agree more examples are needed on conditionals, it's
also worth looking at or adding some in the pagelist examples
in the cookbook.
Pm
More information about the pmwiki-users
mailing list