Text

All Text

0.90.0

Welcome to Zotonic 0.90.0, released on September 4, 2025.

survey_start

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

language_sort_localized

Sort a list of language codes or map with languages on their localized name in the currently selected language. This is…

dispatch

Dispatch or generate URLs or page paths. Useful to check dispatch rules or for client side code to dispatch page paths.

0.89.1

Welcome to Zotonic 0.89.1, released on July 3, 2025.

0.89.0

Welcome to Zotonic 0.89.0, released on July 1, 2025.

render

Render a template.

merge_tags

A mail-merge like filter where tag-expressions in a text are replaced with the value of their evaluation.

0.88.0

Welcome to Zotonic 0.88.0, released on March 13, 2025.

survey_is_pagebreak_submit

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

0.87.0

Welcome to Zotonic 0.87.0, released on February 4, 2025.

observe_content_security_header(Default, Acc, Context)

Check and possibly modify the http response security headers All headers are in lowercase.

from_json

Parse a string as a JSON (JavaScript Object Notation) value. The returned value can be processed futher.

email_relay

Not yet documented.

hasedge

A validator to check if a resource has a certain number of edges with a predicate.

observe_email_is_recipient_ok/2

Check if an email address is safe to send email to. The email address is not blocked and is not marked as bouncing.

0.84.0

Welcome to Zotonic 0.84.0, released on August 29, 2024.

0.83.1

Welcome to Zotonic 0.83.1, released on August 6, 2024.

observe_identity_update_done/2

Notify that a user’s identity has been updated by the identity model.

0.83.0

Welcome to Zotonic 0.83.0, released on June 27, 2024.

copyright

Not yet documented.

trans_languages

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

observe_auth_identity_types/3

Return the list of identity types that allow somebody to logon and become an active user of the system. Defaults to […

CSS classes used in templates

If you are building a website then you might want to use the standard dialogs, overlays, authentication and other parts…

0.82.0

Welcome to Zotonic 0.82.0, released on March 25, 2024.

search_status

Not yet documented.

0.81.0

Welcome to Zotonic 0.81.0, released on January 12, 2024.

observe_language_detect/2

Try to detect the language of a translation. Set is_editable_only to false to detect any language, even if the language…

observe_translate/2

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

0.80.0

Welcome to Zotonic 0.80.0, released on November 21, 2023.

About collaboration groups

Working together on private content. Groups can organize and manage members without the complexity of the full access…

format_dispatch_path_element

Format dispatch path element so variables will be more visible.

format_dispatch_controller_option

Format dispatch controller options.

Building a live updating search page

Search pages are often simple forms that reload the page with new arguments. In this article we will show how you can…

Tracing templates for greater understanding

A picture tells a thousand words, so we added an exciting new development tool to explore which templates are used…

menu_ids

See also

0.78.1

Welcome to Zotonic 0.78.1, released on July 6, 2023.

0.78.0

Welcome to Zotonic 0.78.0, released on June 29, 2023.

rdf

Todo

json

Todo

set_url_language

Change the language of an URL to another language. Useful to generate alternative URLs for a page.

observe_survey_result_columns/3

Add header columns for export. The values are the names of the answers and the text displayed above the column. The…

0.77.0

Welcome to Zotonic 0.77.0, released on May 25, 2023.

observe_survey_result_column_values/3

Modify row with answers for export. The header columns are given and the values that are known are set in the folded…

0.76.0

Welcome to Zotonic 0.76.0, released on April 4, 2023.

observe_acl_collab_groups_modify/3

Modify the list of collaboration groups of a user. Called internally by the ACL modules when fetching the list of…

0.75.0

Welcome to Zotonic 0.75.0, released on March 2, 2023.

mailinglist_recipient_key_decode

Used on the mailing list subscriptions page where users and recipients can unsubscribe from mailinglists.

1.0.0_rc.15

Released on 2023-01-30.

mod_cookie_consent

Wrap external content in such a way that it is only loaded if the user consented to the inclusion of the content (and…

observe_media_viewer_consent/2

Optionally wrap HTML with external content so that it adheres to the cookie/privacy settings of the current site…

translate

See also

1.0.0_rc.14

Released on 2022-12-23.

observe_acl_user_groups_modify/3

Modify the list of user groups of a user. Called internally by the ACL modules when fetching the list of user groups a…

admin_note

Add an editorial note to any resource.

observe_search_query_term/2

Map a custom search term to a #search_sql_term{} record.

0.73.0

Welcome to Zotonic 0.73.0, released on December 8, 2022.

1.0.0_rc.13

Released on 2022-12-05.

urldecode

See also

translation

See also

0.72.0

Welcome to Zotonic 0.72.0, released on November 21, 2022.

1.0.0_rc.12

Released on 2022-11-17.

1.0.0_rc.11

Released on 2022-11-11.

1.0.0_rc.10

Released on 2022-10-31.

0.71.0

Welcome to Zotonic 0.71.0, released on October 18, 2022.

1.0.0_rc.9

Released on 2022-10-12.

round_significant

Round a number value to a number of significant digits. The significance defaults to two digits.

0.70.1

Welcome to Zotonic 0.70.1, released on September 26, 2022.

0.70.0

Welcome to Zotonic 0.70.0, released on September 16, 2022.

1.0.0_rc.8

Released on 2022-09-13.

Security, templates and XSS prevention

Ensuring that you don't fall victim to cross site scripting and other injection attacks takes vigilance, eye for…

normalize_email

Normalize an email address, used in the identity management.

0.69.0

Welcome to Zotonic 0.69.0, released on August 30, 2022.

0.68.0

Welcome to Zotonic 0.68.0, released on July 21, 2022.

0.67.0

Welcome to Zotonic 0.67.0, released on July 5, 2022.

0.66.0

Welcome to Zotonic 0.66.0, released on May 24, 2022.

observe_middleware/3

Delegates the request processing.

Support & Services

Community support - mailinglists Do you want to start a Zotonic based project?  Then join our mailing lists and discuss…

Download Zotonic

Get the latest release Download the latest release of Zotonic from Github. Use git clone, so that you can easily…

0.65.0

Welcome to Zotonic 0.65.0, released on March 17, 2022.

0.64.0

Welcome to Zotonic 0.64.0, released on March 4, 2022.

observe_rsc_import_fetch/2

Fetch the data for an import of a resource. Returns data in the format used by m_rsc_export and m_rsc_import. Either…

observe_email_send_encoded/2

Add a handler for receiving e-mail notifications

observe_http_log_access/2

Access log event for http. Called from the z_stats.

observe_logon_options/3

Check for logon options, called if logon_submit returns undefined. This is used to fetch external (or local…

observe_auth_client_switch_user/2

Send a request to the client to switch users. The zotonic.auth.worker.js will

observe_email_dkim_options/2

Return the options for the DKIM signature on outgoing emails. Called during email encoding.

observe_validate_query_args/3

Called just before validation of all query arguments by z_validation.

observe_resource_headers/3

Let all modules add resource specific response headers to the request. The accumulator is the list of headers to be set.

observe_media_import_medium/2

Notification to import a medium record from external source. This is called for non-file medium records, for example…

observe_url_fetch_options/2

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

observe_auth_client_logon_user/2

Send a request to the client to login a user. The zotonic.auth.worker.js will