Documentation

All Documentation

update

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

Updating form field from a dialog

Ever wanted to update a form field from a dialog, possibly giving the user some list to choose from? Here’s how to do…

Upgrade notes

These notes list the most important changes between Zotonic versions. Please read these notes carefully when upgrading…

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.

urldecode

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

urlencode

Make a text safe for URLs.

urlize

Find urls in the given input and make them clickable.

URLs and links

is_site_url url url_abs sanitize_url is_letsencrypt_valid_hostname urlize escape_link urlencode urldecode parse_url…

Useful environment variables

The following environment variables influence how Zotonic starts up.

User

auth_disconnect delete_username dialog_delete_username dialog_set_username_password dialog_user_add logoff…

User Guide

Welcome to the Zotonic User Guide. This guide is a non-technical introduction to Zotonic.

User management

Create new users In the admin, under ‘Auth’ > ‘Users’ you can find a list of all users. Use the ‘Make a new user’…

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 identity_update_done logon_options logon_ready_page…

Using Varnish as frontend for Zotonic

Using the Varnish HTTP frontend, you can speed up your Zotonic even more as this web server caches static files…

utc

Translates a datetime from local time to UTC.

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

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.

Wires

Wires are the older way to code actions and client/server interaction. It is now advised to use MQTT topics with…

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.

zotonic_status

Model for system-wide site status information.