Browse by topic

Discover Documentation

Explore related documentation through its most useful keyword groups.

1435 items

Grouped by Architecture

All Documentation

Filters

timesince

Show a readable version of a date/time difference.

Models

tkvstore

Simple read-only interface to the typed key-value store of module#mod_tkvstore. To get a value from the store: use m.tkvstore.type.key, like this:

Filters

to_binary

Convert the input to a binary value.

Filters

to_boolean

Convert the input to a boolean value.

Filters

toc

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

Actions

toggle

Toggle the visibility of an element.

Actions

toggle_class

Toggle a CSS class from an HTML element.

Filters

to_integer

Convert the input to an integer value.

Filters

to_json

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

Filters

tokens

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

Filters

to_name

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

Developer guide

Trace a small number of Erlang calls

Open the Development function tracing tool as the admin user. Enter a module, optionally a function, and a small limit on the number of calls.

Developer guide

Trace a URL through dispatch

Open the Development page's dispatch tools. Inspect the list of active rules, then trace the path that produces an unexpected result.

Cookbook

Trace database queries for your session

Enable module#mod_server_storage if the Development page says it is needed for database tracing. On the Development page, enable Trace all database queries for…

Developer guide

Trace database queries for your session

Enable module#mod_server_storage if the Development page says it is needed for database tracing. On the Development page, enable Trace all database queries for…

Developer guide

Trace templates rendered by a request

Open the Development page's Live dependency graph of templates tool. Start a trace for your session, then load the page or path you want to inspect.

Models

traffic_guard

Administrator-only traffic guard rules and current rate-limited IPs.

Tags

trans

Translate a text value using gettext.

Tags

trans_ext

Translate a text value using gettext and substitute variables.

Filters

trans_languages

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

Filters

translate

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

Filters

translated_texts

Check all properties of a map, list or resource. Returns a list of all properties that are translated (have a #trans{} record) and their translations.

Developer guide

Translate interface text

Write the source text in English and mark static interface text for translation.

Developer guide

Translating interface messages

Translating interface messages Zotonic uses English source messages and gettext PO catalogs for interface translations. Language configuration and selection…

Filters

translation

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

Models

translation

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

Models

translation_tree

Tree translation API. get/<id> returns language counts, get/status/<id> returns job progress and post/<id> starts a job. Reads require edit access to the root

Actions

trigger_event

Trigger a named {% wire %} event in the browser. The required name argument identifies the wire; every other action argument is passed to the named event.

Filters

trim

Removes whitespace at the start and end of a string.

Filters

truncate

Truncate a text to a maximum length.

Filters

truncatechars

Truncate a text to a maximum length in characters.

Filters

truncate_html

Truncate a HTML text to a maximum length.

Actions

typeselect

Show possible selections whilst typing.

Developer guide

Understand the optional development API

The Development page has an option to enable an API for recompiling and rebuilding Zotonic. The model implements actions for recompiling, flushing caches, and…

Filters

unescape

Removes HTML escaping from a text.

Actions

unlink

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

Actions

unmask

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

Actions

update

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

Developer guide

Update dependencies deliberately

Change a dependency when you can identify the required fix or feature and the affected callers. Read its version constraints and inspect the resulting lockfile…

Developer guide

Upgrade a module's data schema

Version schema changes through the module's installation and upgrade mechanism. Inspect a module using -mod_schema and manage_schema/2 before adding your own…

Filters

upper

Translates the value to upper case.

Tags

url

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

Filters

url

Generates the relative URL for the given dispatch information.

Filters

url_abs

Generates an absolute URL for the given dispatch information.

Filters

urldecode

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

Filters

urlencode

Make a text safe for URLs.

Filters

urlize

Find urls in the given input and make them clickable.

Tags

use

Render a named fragment defined with tag#fragment.

Tags

useblock

Render a named tag#fragment, pass it enclosed body content, and optionally override its named blocks.

Developer guide

Use Cotonic and MQTT for browser messaging

Use the existing Cotonic browser models and Zotonic MQTT bridge when components need to communicate through topics. First identify whether the topic stays…

Validators

username_unique

Check if an entered username is unique by querying model#identity for the given username:

User guide

Users and editors

Understand the difference between a person page and an account.

Developer guide

Use stable resource names

A resource has a numeric ID within its database. Give application-owned resources a stable name when code needs to find them across installations.

Developer guide

Use stable resource names

A resource has a numeric ID within its database. Give application-owned resources a stable name when code needs to find them across installations.

Filters

utc

Translates a datetime from local time to UTC.

Scomp

validate

The validator tag accepts the following arguments:

Developer guide

Validate a form on both sides

Use semantic form controls with labels and meaningful names. Add Zotonic validators for immediate feedback, then validate the submitted values again at the…

Actions

validation_error

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

Developer guide

Verify an upgrade before release

Prepare an isolated copy of the previously released application and database. Add representative edited content, then apply the new code and schema changes.

Developer guide

Verify backups by restoring them

Define what must be recovered: database, original media, configuration, and security material. Check which parts the selected backup includes before depending…

Filters

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 useful when displaying a list of items in…

Models

websub

Model for WebSub resource subscriptions, delivery queues, and automatic imports.

Filters

websub_error

Translate subscription error codes into explanations for editors. Accepts atoms, plain binaries and legacy binaries formatted with ~p. Unknown errors use a…

Scomp

wire

Connect actions and events to a HTML element.

Scomp

wire_args

Add extra arguments to wired actions.

Models

wires

Resolve JavaScript dependencies for automatic widget loading in module#mod_wires. The widget manager uses this model when a do_<name> class has no registered…