Reference

All Reference

sub_hour

See also

submit

Submits the enclosing form, a specifically targeted form or the closest form to an element.

sub_month

See also

sub_week

See also

sub_year

See also

summary

Extract a summary from a resource.

survey

Dispatch rules Name Path Resource Args survey_results_download [“survey”,”results”,”download”,id]…

survey

Not yet documented.

Survey

survey_answer_split survey_any_correct_answer survey_any_wrong_answer survey_as_pages survey_is_stop survey_is_submit…

survey_any_correct_answer

Determine if any answer of a question was correct. Used for showing results of thurstone test questions.

survey_any_wrong_answer

Determine if any answer of a question was wrong. Used for showing results of thurstone test questions.

survey_as_pages

Split the page blocks into pages, prepare them for easy display in the survey question editor.

survey_is_pagebreak_submit

Check if a list of questions contains a pagebreak block with an unconditional submit.

survey_is_stop

Check if there is a ‘stop’ question in list of (survey) blocks

Survey notifications

survey_get_handlers survey_is_allowed_results_download survey_is_submit survey_submit survey_result_columns…

survey_start

Show the first page for a given survey (with the id parameter):

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

See also

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

See also

tkvstore

See also

to_binary

See also

toc

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

toggle

See also

to_integer

See also

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

See also

trans_ext

See also

trans_filter_filled

Filters all empty translations from a property.

trans_languages

Return a list of all languages present in the given translated text ( #trans{} record).

translate

See also

translation

See also

translation

The m_translation model gives easy access to language and translation related information.

Translation

is_rtl language language_dir language_sort language_sort_localized media_for_language set_url_language trans_languages…

trigger_event

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

trim

Removes whitespace at the start and end of a string.

truncate

See also

Tuples

element

typeselect

Show possible selections whilst typing.

unescape

See also

unlink

See also

unmask

See also

update

See also

upper

See also

url

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

url

See also

url_abs

See also

urldecode

See also

urlencode

See also

urlize

See also

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 notifications

identity_password_match identity_verification identity_verified identity_update_done logon_options logon_ready_page…

utc

See also

validate

The validator tag accepts the following arguments:

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 from_json…

vsplit_in

See also

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.

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.