Text

All Text

survey_result_column_values

Used by the survey module to add extra column values to the result editor.

Release 0.77.0

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

survey_result_column_values

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

Release 0.76.0

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

acl_collab_groups_modify

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

Release 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.

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

media_viewer_consent

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

translate

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

Release 1.0.0-rc.14

Released on 2022-12-23.

acl_user_groups_modify

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

m_admin_note

Add an editorial note to any resource.

search_query_term

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

Release 0.73.0

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

Release 1.0.0-rc.13

Released on 2022-12-05.

urldecode

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

translation

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

Release 0.72.0

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

Release 1.0.0-rc.12

Released on 2022-11-17.

Release 1.0.0-rc.11

Released on 2022-11-11.

Release 1.0.0-rc.10

Released on 2022-10-31.

Release 0.71.0

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

Release 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.

Release 0.70.1

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

Release 0.70.0

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

Release 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.

Release 0.69.0

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

Release 0.68.0

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

Release 0.67.0

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

Release 0.66.0

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

middleware

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…

Release 0.65.0

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

Release 0.64.0

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

rsc_import_fetch

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

email_send_encoded

Add a handler for receiving e-mail notifications

http_log_access

Access log event for http. Called from the z_stats.

logon_options

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

auth_client_switch_user

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

email_dkim_options

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

validate_query_args

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

resource_headers

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

media_import_medium

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

url_fetch_options

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

auth_client_logon_user

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

media_preview_options

Modify the options for an image preview url or tag. This is called for every image url generation, except if the…

Other cookbooks

Create a custom action Create a custom filter Create a custom model Create a custom controller Custom pivots Create a…

Shell cookbook

Activate/deactivate modules Filter and convert characters Erlang tab completion Debugging db (query) issues Reset a…

Just enough…

These Cookbook items each represent a stage in some Zotonic users’ journeys to understand the workings of Erlang and…

Frontend cookbook

These cookbook entries contain valuable nuggets of information regarding the frontend development of a site.

Admin cookbook

Creating a custom widget on the edit page Customizing the layout of the admin edit page Customizing the style of an…

menu_expand

Takes a menu, or a menu resource id, and adds all haspart objects connected to the menu ids.

language_dir

Return rtl or ltr depening on the direction of the language.

escape_check

Ensures thant an HTML escaped value is properly escaped.

Release 0.63.0

Welcome to Zotonic 0.63.0, released on Oct 29, 2021.

sub_hour

Subtracts an hour from a date. The value must be of the form {{Y,M,D},{H,I,S}} .

add_hour

Adds an hour to a date. The value must be of the form {{Y,M,D},{H,I,S}} .

parse_url

Parses an URL (URI) using uri_string:parse/1 .

m_oauth2_consumer

Not yet documented.

controller_ping

Simple controller for connection tests, used on the /test/connection page.

is_site_url

Test if the given URL is a url for the current site.

URLs and links

is_site_url url url_abs sanitize_url is_letsencrypt_valid_hostname urlize escape_link urlencode urldecode parse_url…

mod_image_edit

Non destructive edits of images.

m_image_edit

Manages the medium_edit_settings property for non destructive image editing.

Create a custom controller

Zotonic comes with a large collection controllers that cover many use cases, so you’ll probably have to resort to…

Release 0.62.0

Welcome to Zotonic 0.62.0, released on July 7, 2021.

m_signup

Exported APIs:

Release 0.61.0

Welcome to Zotonic 0.61.0, released on June 7, 2021.

m_seo_sitemap

Not yet documented.

sanitize_html

Sanitize a HTML code. Removes elements and attributes that might be dangerous, like <script> elements.

sanitize_url

Sanitize an URL. Removes URLs that might be dangerous, like javascript: URLs.

toc

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

dispatch-test

Dispatch rules Name Path Resource Args initial_test [“test”,”initial_postback_test”] controller_template…

dispatch

Dispatch rules Name Path Resource Args microsoft_authorize [“oauth-service”,”authorize”,”microsoft”]…

m_microsoft

Check with useauth if the authentication using the Microsoft identity platform is enabled and configured.

mod_microsoft

Adds logon using the Microsoft identity platform.

dispatch

Dispatch rules Name Path Resource Args fileuploader [“fileuploader”,”upload”,name] controller_fileuploader []…

m_fileuploader

Model to start uploads, upload a block and delete uploads.

controller_fileuploader

The fileuploader controller is used to upload parts of a file.

mod_fileuploader

Upload files using a parallel web worker.

Release 0.60.0

Welcome to Zotonic 0.60.0, released on February 15, 2021.

Release 0.59.0

Welcome to Zotonic 0.59.0, released on December 18, 2020.

m_site_update

Model for checking if a site has version control enabled.

mod_site_update

This module pulls updates of a site‘s code from a remote version control system. The supported version control systems…

controller_logon_done

This controller is used as a jumping stone after a log on from the /logon page. The p argument is passed from the…

url_abs

Generates an absolute URL for the given dispatch information.

url

Generates the relative URL for the given dispatch information.

Release 0.58.0

Welcome to Zotonic 0.58.0, released on November 2, 2020.

The Rationale of Zotonic

Zotonic is a modern and extensive content management system. It has its roots in systems before it and carries the…

Release 0.56.3

Welcome to Zotonic 0.56.3, released on August 31, 2020.

Release 0.54.3

Welcome to Zotonic 0.54.3, released on August 31, 2020.

format_duration

Show a duration in hours, minutes and seconds.