The ezroot template operator
Registered in kernel/common/eztemplateautoload.php by the class eZURLOperator (kernel/common/ezurloperator.php).
The same class also registers: ezurl, ezdesign, ezimage, exturl, ezsys, ezhttp, ezhttp_hasvariable, ezini, ezini_hasvariable.
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|ezroot( 'double', 'relative' )In a shipped template
The first use in the templates of this installation, design/admin/override/templates/embed-inline_image.tpl line 8:
<img src=$image_variation.full_path|ezroot alt="$object.data_map.image.content.alternative_text|wash(xhtml)"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.