Text
Show the admin dialog for creating a new resource.
Converts a text into a slug.
Dispatch rules Name Path Resource Args admin_seo [“admin”,”seo”] controller_admin_seo [seo_noindex]…
OAuth2 provider module for app/client/token management and authorization flows.
Test if a hostname can be used for a Let’s Encrypt certificate.
A survey has been filled in and submitted.
Render a validation error on the target. Text is given in the text argument.
Model for mailinglist operations and reporting, including recipient counts, delivery stats, subscriptions, and…
Replace $N placeholders in string from a list of replacement values.
Dispatch rules Name Path Resource Args admin_modules [“admin”,”modules”] controller_admin_module_manager…
Handle a javascript notification from the postback handler. The message is the the request, trigger the id of the…
Adds editing of resources, menu-trees and collections for non-admin users.
Dispatch rules Name Path Resource Args admin_frontend_edit [“edit”] controller_page [{acl,is_auth},{template
Perform array-slice operations on a list or string.
Zotonic is a Content Management System (CMS).
Dispatch rules Name Path Resource Args admin_auth2fa_config [“admin”,”authentication-2fa”] controller_admin [{ssl
Try to find the site for the request Called when the request Host doesn’t match any active site.
Notify that we could NOT send an e-mail (there might be a bounce later...) The Context is the depickled z_email:send/2…
Todo
Apply actions with arguments added.
with_args
Set the value of a form field.
Provides periodic tick notifications and module-defined cron job scheduling.
Show a boolean value as a text.
yesno
Toggle an element by sliding it up and down.
Sanitize an embed url. The hostpart is of the format: <<"youtube.com/v..."\>\> .
group_firstchar group_title_firstchar is_a is_not_a is_visible media_for_language
observe_media_identify_extension/2
Try to find a filename extension for a mime type (example: <<".jpg"\>\> )
Reverse a list.
Model for admin status endpoints, including Zotonic version and health/status overview values.
Resource is read, opportunity to add computed fields Used in a foldr with the read properties as accumulator.
This action executes JavaScript directly. It can be used to interface with non-Zotonic JavaScript libraries and…
Fold for mapping non-iolist output to iolist values.
Foldr for a resource insert, these are the initial properties and will overrule the properties in the insert request.
The m_acl model gives access the id of the currently logged in user, and provides a mechanism to do basic access…
Cancel a mailing list subscription. The recipient id is given with the id argument.
Post a message to the test mailing list, given with the id argument.
Shows the dialog to mail the current page ( resource) to a mailing list. This is used in the admin “mailing status”…
Shows the dialog to mail the current page ( resource) to a single e-mail address. This is used in the frontend of a…
dialog_mail_page dialog_mailing_page mailing_page_test mailinglist_confirm mailinglist_unsubscribe
Implements a basic contact form, which gets emailed to the configuration value mod_contact.email , when submitted.
It is possible to put Zotonic behind the nginx <http://nginx.org/> web server, for example if you have other, non
Running on Port 80 and Port 443
Using standard ports helps visitors discover your page and removes the awkward port number from URLs.
Model for ACL user-group helper values in mod_acl_user_groups, including collaboration-group settings and category…
Delete a resource, without confirmation.
observe_export_resource_header/2
mod_export - Fetch the header for the export.
observe_export_resource_footer/2
mod_export - Fetch the footer for the export. Should cleanup the continuation state, if needed.
observe_export_resource_filename/2
mod_export - return the \{ok, Filename\} for the content disposition.
observe_export_resource_encode/2
mod_export - Encode a single data element.
observe_export_resource_data/2
mod_export - fetch a row for the export, can return a list of rows, a binary, and optionally a continuation state.
observe_export_resource_content_disposition/2
mod_export - return the \{ok, Disposition\} for the content disposition.
An external feed delivered a resource. First handler can import it. Return:: {ok, m_rsc:resource_id()} , `{error
observe_import_csv_definition/2
Find an import definition for a CSV file by checking the filename of the to be imported file.
import_csv_definition import_resource export_resource_content_disposition export_resource_content_type…
Enables redirects from unknown hosts and paths to other locations. The other location can be a known path or another…
Model for custom redirect records, exposing redirect list and individual redirect lookup by id.
Model for localization helpers, including countries, country names, available timezones, and site timezone settings.
Model for admin configuration views, including SSL certificate info, security directory info, and selected module…
Used to map IP addresses to geographical locations.
Maps an IP address to a country using the MaxMind GeoIP2 database.
Centers the value in a field of a certain width using spaces.
Justifies the value in a field of a certain width to the right, using spaces.
Justifies the value in a field of a certain width to the left, with spaces.
Retrieve information that is stored in the site configuration. If you want to query values from the config table…
Site management module for creating, configuring, and controlling managed Zotonic sites.
Returns the last character or element.
Notification to signal an inserted comment. ‘comment_id’ is the id of the inserted comment, ‘id’ is the id of the…
Add a $(..).focus() jQuery call to the target element to give it input focus.
Used in the admin to fetch the possible blocks for display
Fetch the nth tail of a list.
Returns the first character or element.
Returns a list of tokens from input string, separated by the characters in the filter argument.
Add support for editing the site’s configuration values, as accessed through m_config.
Make a generated URL absolute, optionally called after url_rewrite by z_dispatcher
Notification to translate or map a file after upload, before insertion into the database Used in mod_video to queue…
Adds wysiwyg tinyMCE editors to the admin.
Zotonic has built-in support for HTTPS and TLS (previously SSL) certificate handling.
Request certificates from Let’s Encrypt.
The mod_ssl_ca module adds support for using SSL certificates bought from a Certificate Authority.
This module adds rule-based access control.
Check if an input has been filled in or checked.
Performs a custom server side validation of an input value. This allows you to add your own validation logic to HTML…
Numerical input and range check.
A validator to check whether a resource’s name is unique:
Regular expression test.
Check if the content of the input field is an e-mail address.
Validate input date against a given date format.
Check if two inputs are the same.
Check if an input value evaluates to true.
Implements a basic commenting system, enabling commenting on resources.
Show an integer value.
Show an integer or float.
Show a price with decimals.
Media update done notification. action is ‘insert’, ‘update’ or ‘delete’
Makes media resources from embeddable URLs through the OEmbed protocol.
Confirm a mailinglist subscription. Required argument is the confirm_key .
Request to generate a HTML media viewer for a resource. The HTML data can not contain any Javascript, as it might be…
Implements rate limiting for various resources.
First to check for password reset forms, return undefined, ok, or \{error, Reason\}.