Conditional objects in templates

Robin Elfrink elfrink at
Thu Nov 16 12:49:50 CET 2006


I have a first rough implementation of conditional objects in templates.

An object in a template file can have an extra attribute called
'conditional', which holds a condition like 'varname==value'. '==' can
be '!=', or '<=' or any other expression. 'varname' is any $CONFIG variable.

In the example the messagelist is only shown if the mailbox-name is 'INBOX'.

Am I going in the right direction?


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: conditional-objects.patch
URL: <>

More information about the Dev mailing list