The ezini_hasvariable template operator
Registered in kernel/common/eztemplateautoload.php by the class eZURLOperator (kernel/common/ezurloperator.php).
The same class also registers: ezurl, ezroot, ezdesign, ezimage, exturl, ezsys, ezhttp, ezhttp_hasvariable, ezini.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
quote_val | string | no | 'double' |
server_url | string | no | 'relative' |
The operator works on its input: the value before |.
Example
Built from the parameter list above; the values are placeholders (the operator's template hints decide whether it takes an input).
$value|ezini_hasvariable( 'double', 'relative' )In a shipped template
The first use in the templates of this installation, design/admin/templates/children_detailed.tpl line 54:
subitemsServer: if ezini_hasvariable( 'ezjscServer_expsubitems', 'Class', 'ezjscore.ini' )trueelsefalse/if,Related
Generated by ./console exp:help:examples from kernel/common/eztemplateautoload.php, kernel/common/ezurloperator.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.