Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Operator reference

Every template operator of the template library and the kernel, grouped by the file that registers it, with a one-line purpose, plus the operators the main design-related extensions add, and how to list the operators of…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/designers/templates/operator-reference.md

On this page

Operator reference

This page lists the template operators of Exponential by where they are registered. Purpose lines are short; the family pages linked at the end explain the important ones with examples.

Contents

  1. The template library
  2. The kernel
  3. PHP functions by setting
  4. Design-related extensions
  5. Listing the operators of your installation

The template library

Registered in lib/eztemplate/classes/eztemplateautoload.php:

OperatorsClassPurpose
array, hasheZTemplateArrayOperatorbuild an array or a hash
append, prepend, merge (older: array_append, array_prepend, array_merge)eZTemplateArrayOperatoradd items, join arrays
contains, compare, begins_with, ends_witheZTemplateArrayOperatortests on arrays and strings
extract, extract_left, extract_right, reverse, unique, insert, remove, replace, repeateZTemplateArrayOperatortake parts, change
implode, explode, array_sumeZTemplateArrayOperatorjoin, split, sum
fetch, fetch_aliaseZTemplateExecuteOperatorcall a fetch function (Fetch basics)
l10n, locale, datetime, currentdate, maketime, makedate, gettimeeZTemplateLocaleOperatorlocale formatting and dates
attribute, dumpeZTemplateAttributeOperatorshow a value's attributes (debugging)
nl2breZTemplateNl2BrOperatorline breaks to <br>
concat, indenteZTemplateTextOperatorjoin texts, indent
sieZTemplateUnitOperatornumbers with unit prefixes (sizes)
lt, gt, le, ge, eq, ne, null, not, true, false, or, and, chooseeZTemplateLogicOperatorcomparisons and logic
is_array, is_boolean, is_integer, is_float, is_numeric, is_string, is_object, is_class, is_null, is_set, is_unset, get_type, get_classeZTemplateTypeOperatortype tests
cond, first_seteZTemplateControlOperatorchoose a value
sum, sub, inc, dec, div, mod, mul, max, min, abs, ceil, floor, round, int, float, count, roman, randeZTemplateArithmeticOperatorarithmetic
texttoimage, image, imagefileeZTemplateImageOperatortext rendered as images (legacy)
upcase, downcase, count_words, count_chars, trim, break, wrap, upfirst, upword, simplify, wash, chr, ord, shorten, padeZTemplateStringOperatortext shaping and escaping
crc32, md5, rot13eZTemplateDigestOperatorchecksums
expinfoeZTemplateExpInfoOperatormetadata of extensions: expinfo() the active ones, expinfo( 'all' ), expinfo( '<name>' )
strlen, substr, sprintf, str_contains, number_format, strip_tags and about fifty moreeZTemplateStringsOperatorPHP string functions (PHP string functions as operators)

The kernel

Registered in kernel/common/eztemplateautoload.php:

OperatorsPurpose
ezurl, ezroot, ezdesign, ezimage, exturl, ezsysURLs and design files (URL operators)
ezhttp, ezhttp_hasvariablerequest values (The ezhttp operator)
ezini, ezini_hasvariablesettings (The ezini operator)
i18n, x18n, d18ntranslation (The i18n operator)
alphabetthe letters for A to Z filters, from content.ini [AlphabeticalFilterSettings]
month_overviewdata for a month calendar
autolinkturn URLs in text into links (template.ini [AutoLinkOperator])
simpletagssimple markup to HTML (template.ini [SimpleTagsOperator])
treemenu, content_structure_tree, topmenumenu and tree data
wordtoimage, mimetype_icon, class_icon, classgroup_icon, action_icon, icon, flag_icon, icon_infoicons of the icon themes
ezpreferencea preference of the current user
siteaccess_url, siteaccess_menu, siteaccess_menu_keylinks to other siteaccesses (language switchers)
PHP functions of template.ini [PHP] PHPOperatorList[]see below
module_paramsmodule and view of the current request
ezpackagepackage information
eztoca table of contents of rich text
ezmodulemodule information (see doc/eng-us/features/3.10/ezmodule_template_operator.txt)
installation_name, is_production_systemthe installation's name and whether it is production
audit_labellabels of the audit log
exp_environment, exp_environment_badgethe environment (development, staging, production) and its badge
csp_noncethe Content Security Policy nonce of the request (CSP-safe design)

kernel/private/eztemplate/eztemplateautoload.php adds language_switcher.

PHP functions by setting

settings/template.ini [PHP] PHPOperatorList[] exposes PHP functions under operator names; shipped: urlencode, urldecode, rawurlencode, rawurldecode.

Available only where the extension is active:

ExtensionOperators
ezjscoreezscript, ezscript_require, ezscript_load, ezscriptfiles, ezcss, ezcss_require, ezcss_load, ezcssfiles, json_encode, xml_encode, node_encode, has_access_to_limitation (ezjscore template operators)
ezwebinezpagedata, ezpagedata_set, ezpagedata_append, ezkeywordlist, ezarchive, eztagcloud
explayoutsexpl_first, expl_has, expl_parse, expl_strip; function explblock
eztagseztags_parent_string, eztagscloud, latest_tags, tag_icon, user_limitations
ezstarratingfetch_by_starrating, fetch_starrating_data, fetch_starrating_stats
ezoeezoe_ini_section
expuiexp_config
sevenx_themes_media54 operators of the media theme (intro, title, path, content_link, image, ng_image_alias, site_url, json_ld ...), see its doc/USAGE.md

Listing the operators of your installation

On a development installation, the operators registered for a siteaccess are the keys of eZTemplate::factory()->Operators; a developer can print them with a small script run through php bin/php/ezexec.php. Extension operators appear only when the extension is active for that siteaccess and listed in [TemplateSettings] ExtensionAutoloadPath[].

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x