The ezhttp_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, ezini, ezini_hasvariable.
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
quote_val | string | no | 'double' |
server_url | string | no | 'relative' |
Example
Built from the parameter list above; the values are placeholders (the operator's template hints decide whether it takes an input).
$value|ezhttp_hasvariable( 'double', 'relative' )In a shipped template
The first use in the templates of this installation, design/standard/templates/content/edit_redirection.tpl line 2:
if ezhttp_hasvariable( 'RedirectURIAfterPublish', 'session' )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.