Documentation
Show a dialog for adding a user. This creates a person resource and adds a username / password to it.
Zotonic is a set of regular OTP applications. These can be found in the repository’s apps/ directory:
Sets the “disabled” attribute of a HTML tag and adds the CSS class “disabled”.
Dispatch rules Name Path Resource Args admin_comments [“admin”,”comments”] controller_admin_comments [seo_noindex]…
Dispatch rules Name Path Resource Args acl_rule_test [“acl”,”rules”,”test”] controller_template [{template
Dispatch rules Name Path Resource Args zotonic_sites_add [“zotonic”,”sites”,”add”] controller_zotonic_status…
Dispatch rules Name Path Resource Args admin_frontend_edit [“edit”] controller_page [{acl,is_auth},{template
Dispatch rules Name Path Resource Args id [“id”,id] controller_id [] lib [“lib”,’*’] controller_file [{root
Dispatch rules Name Path Resource Args admin_predicate [“admin”,”predicate”] controller_admin [{acl_module
Dispatch rules Name Path Resource Args contact [“contact”] controller_page [{template,”contact.tpl”},{id
Dispatch rules Name Path Resource Args oauth2_consumer_authorize [“oauth-service”,”authorize”,”zotonic”
Dispatch rules Name Path Resource Args admin_import [“admin”,”import”] controller_admin [{template,”_admin_import.
Dispatch rules Name Path Resource Args linkedin_authorize [“oauth-service”,”authorize”,”linkedin”]…
Dispatch rules Name Path Resource Args signup [“signup”] controller_signup [] signup_confirm [“signup”,”confirm”]…
Final try for dispatch, try to match the request. Called when the site is known, but no match is found for the path
Dispatch rules Name Path Resource Args admin_merge_rsc [“admin”,”merge”,id] controller_admin_edit [{template
Dispatch rules Name Path Resource Args admin_seo [“admin”,”seo”] controller_admin_seo [seo_noindex]…
Dispatch rules Name Path Resource Args admin_custom_redirect [“admin”,”custom-redirect”] controller_admin…
Dispatch rules Name Path Resource Args admin_log [“admin”,”log”] controller_admin [{template,”admin_log.tpl”}
Dispatch rules Name Path Resource Args microsoft_authorize [“oauth-service”,”authorize”,”microsoft”]…
Dispatch rules Name Path Resource Args admin_category_sorter [“admin”,”category”] controller_admin_category_sorter…
Dispatch rules Name Path Resource Args admin_menu_hierarchy [“admin”,”hierarchy”,name] controller_admin [{template
Dispatch rules Name Path Resource Args admin_statistics [“admin”,”statistics”] controller_admin_statistics []…
Dispatch rules Name Path Resource Args facebook_authorize [“oauth-service”,”authorize”,”facebook”]…
Dispatch rules Name Path Resource Args admin [“admin”] controller_admin [seo_noindex] admin_overview_rsc [“admin”
Dispatch rules Name Path Resource Args sitemap_xml [“sitemap.xml”] controller_template [{template,”sitemap.tpl”}
Dispatch rules Name Path Resource Args admin_config [“admin”,”config”] controller_admin_config [seo_noindex]…
Dispatch rules Name Path Resource Args letsencrypt_challenge [“.well-known”,”acme-challenge”,token]…
Dispatch rules Name Path Resource Args fileuploader [“fileuploader”,”upload”,name] controller_fileuploader []…
Dispatch rules Name Path Resource Args admin_filestore [“admin”,”filestore”] controller_admin [{template
Dispatch rules Name Path Resource Args admin_auth2fa_config [“admin”,”authentication-2fa”] controller_admin [{ssl
Dispatch rules Name Path Resource Args logoff [“logoff”] controller_logoff [] logon [“logon”] controller_template…
Dispatch rules Name Path Resource Args admin_l10n [“admin”,”localization”] controller_admin [{template,”admin_l10n.
Dispatch rules Name Path Resource Args mqtt_transport [“mqtt-transport”] controller_mqtt_transport []…
Dispatch rules Name Path Resource Args export_rsc [“export”,”rsc”] controller_export_resource [] export_rsc…
Try to find the site for the request Called when the request Host doesn’t match any active site.
Dispatch rules Name Path Resource Args admin_mailinglist [“admin”,”mailinglists”] controller_admin_mailinglist…
Dispatch rules Name Path Resource Args admin_modules [“admin”,”modules”] controller_admin_module_manager…
content_types_dispatch dispatch dispatch_host dispatch_rewrite page_url url_abs url_rewrite
Rewrite a URL before it will be dispatched using the z_sites_dispatcher
Dispatch rules route incoming requests to controllers.
Dispatch rules Name Path Resource Args initial_test [“test”,”initial_postback_test”] controller_template…
Dispatch rules Name Path Resource Args admin_translation [“admin”,”translation”] controller_admin [{acl_module
For the benefit of search engines and fans of tables of contents you can easily provide a site map.
We offer the Docker image zotonic/zotonic-dev which contains build tools and Erlang.
add_class animate buttonize effect fade_in fade_out hide insert_after insert_before insert_bottom insert_top…
Get the latest release Download the latest release of Zotonic from Github. Use git clone, so that you can easily…
Mark a html element as draggable.
Handle a new file received in the ‘files/dropbox’ folder of a site. Unhandled files are deleted after a hour.
Mark an element as valid drag destination.
Dynamic select options using a wired template
Why Suppose you want to wire a change event for a select box to update a another select box, i.e. you want to wire the…
An edge has been deleted Note that the Context for this notification does not have the user who deleted the edge.
An edge has been inserted. Note that the Context for this notification does not have the user who created the edge.
edge_delete edge_insert edge_update
An edge has been updated Note that the Context for this notification does not have the user who updated the edge.
editor_add editor_remove zlink zmedia zmedia_choose zmedia_has_chosen
Add WYSIWYG editor controls to all textarea’s with the z_editor class in the target.
Remove any WYSIWYG editor controls from all textarea’s with the z_editor class in the target.
Add a $(..).effect jQuery call to the target element.
Select an element from a tuple or list of tuples.
Check if the content of the input field is an e-mail address.
Add a handler for receiving e-mail notifications
Bounced e-mail notification. The recipient is the e-mail that is bouncing. When the the message_nr is unknown the it…
Return the options for the DKIM signature on outgoing emails. Called during email encoding.
Drop an e-mail handler for a user/resource id. (notify). The notification, user and resource should be the same as when…
Add a handler for receiving e-mail notifications
Notify that we could NOT send an e-mail (there might be a bounce later…) The Context is the depickled z_email:send/2…
Any Zotonic system is capable of sending and receiving e-mail messages over SMTP.
Check if an email address is blocked
Check if an email address is safe to send email to. The email address is not blocked and is not marked as bouncing.
email_add_handler email_bounced email_dkim_options email_drop_handler email_ensure_handler email_failed…
Notification sent to a site when e-mail for that site is received
Add a handler for receiving e-mail notifications
Notify that we could NOT send an e-mail (there might be a bounce later…) The Context is the depickled z_email:send/2…
Email status notification, sent when the validity of an email recipient changes
Check if an entered e-mail address is unique, by looking in the m_identity table for the email key:
Fetch media ids that are embedded in the body , body_extra and text blocks of your page.
Resets the “disabled” attribute of a HTML tag and removes the CSS class “disabled”.
Using growl outside admin requires some magic to make it work.
md5 sha1
Tests if the value is a date and equal to the argument. The value and the argument must be a tuple of the format {Y,M
Get quicker access to Zotonic code on the shell.
HTML escape a text. Escapes all reserved HTML characters in the value. Escaped strings are safe to be displayed in a…
Ensures thant an HTML escaped value is properly escaped.
Escape the value according to the RFC2445 rules.
Escapes the value for insertion in JavaScript output.
Escapes the value for safe insertion into JSON strings.
Convert any URLs in a plaintext into HTML links, with adding the rel="nofollow" attribute, and replaces all newlines…
Escape the value for insertion in xml output.
Bind actions to a jQuery event or submit a form.
postback trigger_event publish
Filters a list on the value of a property, either on absence or inequality.
Execute tasks asynchronously using the task queue
The Zotonic task queue lets applications perform tasks asynchronously.
Zotonic comes with a system for collecting and exporting metrics (such as how much memory is used, how many database…
export_resource_content_disposition
mod_export - return the {ok, Disposition} for the content disposition.
mod_export - Determine the mime type for the export.
mod_export - fetch a row for the export, can return a list of rows, a binary, and optionally a continuation state.
mod_export - Encode a single data element.
mod_export - return the {ok, Filename} for the content disposition.
mod_export - Fetch the footer for the export. Should cleanup the continuation state, if needed.