Conditional objects in templates

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


Hi,


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?


Robin

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: conditional-objects.patch
URL: <http://lists.roundcube.net/pipermail/dev/attachments/20061116/a6ba3754/attachment.ksh>


More information about the Dev mailing list