Reference

All Reference

survey_test_max_points

Counts the total of all points that can be received for all test questions. Non test questions are not counted.

tabs

Make a HTML element into a tab set.

tail

Fetch the tail of a list.

template

Render a template. When used in a postback action, the result will be sent back with the response data for the postback.

Templates

template

templatetag

Not implemented, but exists in Zotonic for forward compatibility with future ErlyDTL and Django versions.

temporary_rsc

Creates a temporary resource if its input value is not defined.

tests

Dispatch rules Name Path Resource Args hello_world [“test”,”hello_world”] controller_hello_world []…

The addsite command

Adding a site to Zotonic is done through the zotonic shell command. It syntax is like this:

timesince

Show a readable version of a date/time difference.

tkvstore_delete

Delete a value from the typed key/value store

tkvstore_get

Get a value from the typed key/value store

tkvstore_put

Put a value into the typed key/value store

to_binary

Convert the input to a binary value.

toc

Filter to derive a Table Of Contents from a HTML body.

toggle

Toggle the visibility of an element.

toggle_class

Toggle a CSS class from an HTML element.

to_integer

Convert the input to an integer value.

to_json

Display any value as in JSON (JavaScript Object Notation).

tokens

Returns a list of tokens from input string, separated by the characters in the filter argument.

to_name

Map a string to a name . That is a lowercased string with only [a-z0-9_] characters.

trans_filter_filled

Filters all empty translations from a property.

translate

Translate a text value using gettext.

translate

Request a translation of a list of strings. The resulting translations must be in the same order as the request. This…

translate

Translates a (English) value to the current language or the given language.

Translation

is_rtl language language_dir language_sort media_for_language set_url_language trans_filter_filled translation…

translation

Lookup a specific translation in a translated text. If the text is not translated then the text is returned as-is.

trans (variable substitution)

Translate a text value using gettext and substitute variables.

trigger_event

Trigger a named {% wire %} with an action. All args will be args to the named wire. The trigger’s name argument is the…

trim

Removes whitespace at the start and end of a string.

truncate

Truncate a text to a maximum length.

truncatechars

Truncate a text to a maximum length in characters.

truncate_html

Truncate a HTML text to a maximum length.

Tuples

element

typeselect

Show possible selections whilst typing.

unescape

Removes HTML escaping from a text.

unlink

Remove an edge between two resources. Used in the admin.

unmask

Removes a mask that was placed over an element using the mask action.

update

Updates the content of an HTML element with a template or a literal HTML text.

update_iframe

Updates the content of an iframe with a template or a literal HTML text.

upper

Translates the value to upper case.

url

Generates the relative URL for the given dispatch information.

url

Generate the URL for a named dispatch rule. In this way it is possible to automatically change the generated URLs when…

url_abs

Generates an absolute URL for the given dispatch information.

url_abs

Make a generated URL absolute, optionally called after url_rewrite by z_dispatcher

urldecode

Decode a text where characters are encoded as URL-safe characters.

urlencode

Make a text safe for URLs.

url_fetch_options

Determine the URL fetch options for fetching the content of an URL. Used by z_fetch.erl.

urlize

Find urls in the given input and make them clickable.

url_rewrite

Rewrite a URL after it has been generated using the z_dispatcher

URLs and links

is_site_url url url_abs sanitize_url is_letsencrypt_valid_hostname urlize escape_link urlencode urldecode parse_url…

User

auth_disconnect delete_username dialog_delete_username dialog_set_username_password dialog_user_add logoff…

user_context

Set #context fields depending on the user and/or the preferences of the user.

user_is_enabled

Check if a user is enabled. Enabled users are allowed to log in. Return true , false or undefined . If undefined is…

username_unique

Check if an entered username is unique, by looking in the m_identity table for the given username:

User notifications

identity_password_match identity_verification identity_verified logon_options logon_ready_page logon_submit…

utc

Translates a datetime from local time to UTC.

validate

The validator tag accepts the following arguments:

validate_query_args

Called just before validation of all query arguments by z_validation. This is the moment to filter any illegal…

validation_error

Render a validation error on the target. Text is given in the text argument.

Variables

as_atom default if if_undefined is_defined is_undefined make_value pprint to_binary to_integer to_json

vsplit_in

This filter splits a list in shorter lists. It splits an array in N sub-arrays of more or less equal length. This is…

wire

Connect actions and events to a HTML element.

wire_args

Add extra arguments to wired actions.

with

Assign a complex value to a variable.

with_args

Apply actions with arguments added.

without

Remove the items given in the argument from the filter value.

without_embedded_media

Filter out media ids that are embedded in the body , body_extra and text blocks of your page.

yesno

Show a boolean value as a text.

zlink

Used for inserting an internal link in the TinyMCE editor in the admin.

zmedia

Used for triggering the insertion of a media item in the TinyMCE editor in the admin.

zmedia_choose

Used after a media item is selected in the media chooser for the TinyMCE editor.

zmedia_has_chosen

Used by the admin as a callback when a media file has been selected for insertion into the rich-text editor.