The urlencode template operator
Registered in kernel/common/eztemplateautoload.php by the class eZTemplatePHPOperator (lib/eztemplate/classes/eztemplatephpoperator.php).
It calls the PHP function urlencode(), listed in settings/template.ini [PHP] PHPOperatorList[].
The same class also registers: urldecode, rawurlencode, rawurldecode.
Parameters
The class does not describe its parameters (no namedParameterList()); see its source for what it reads.
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|urlencodeIn a shipped template
The first use in the templates of this installation, design/admin/templates/exphelp/search.tpl line 193:
foreach $help_search.suggest as $word<a class="a4-tag" href=concat( '/exphelp/search/(q)/', $word|urlencode )|ezurl>$word|wash</a>delimiter /delimiter/foreachRelated
Generated by ./console exp:help:examples from kernel/common/eztemplateautoload.php, lib/eztemplate/classes/eztemplatephpoperator.php. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.