opengeek/getResources — pull request #58 by freejung (2011-12-16 14:05:52+00:00)
Title: Conditional Templates

Added support for conditional templates. This allows using a different template depending on a field or TV of the resource being displayed.

New parameters:

$tplCondition - the name of the field or TV (including TV prefix) on which the template depends

$tplOperator - optional comparison operator - defaults to equals - supports all operators used by the If snippet (uses the same code)

$conditionalTpls - JSON array of values for comparison to $tplCondition and corresponding chunk names to use as a template if the comparison succeeds