Documentation
Browse by topic
Explore related documentation through its most useful keyword groups.
1435 items
Grouped by Architecture
A named transformation applied to a value inside a template expression.
Explore this clusterA typed event or request exchanged between decoupled Zotonic components through the notifier.
A namespaced interface for retrieving or changing data and invoking operations in Zotonic or browser-side components.
Explore this clusterAn OTP application or site component that adds Zotonic behavior templates data and configuration.
Explore this clusterA server-defined browser action or event binding connected through Zotonic wires.
Explore this clusterA server-side template_compiler document that renders data into HTML text email or another representation.
Explore this clusterA request handler that maps web requests to responses and coordinates authorization rendering or data transfer.
Explore this clusterA route declaration that matches a URL pattern and selects a controller with arguments.
Explore this clusterThe central Zotonic entity that represents content users media categories and other addressable objects.
Explore this clusterDocumentation not covered by the other keyword groups in this split.
Explore this clusterCreate, capture and synchronize PayPal Orders and verify webhook events.
Create and synchronize Stripe payment-mode Checkout Sessions.
Access local payment and subscription records, membership state and provider customer portals. Database records generally use binary map keys. Template paths…
Provide geographic filter choices and subscription searches for Paysub.
A ticketing system for out of band MQTT posts via HTTP.
Relay messages, resolve signed links and queue callbacks for mod_secure_message . Message records are returned as atom-keyed property lists; relay requests and…
Set a template's default gettext message context:
Expose OpenID Connect provider configuration and public provider choices to templates, and supply provider storage and logon lookup functions to Erlang.
Translate plain text and HTML with Argos Translate and manage its language packages through a shared local Python worker.
Translates lists of texts using the DeepL API and exposes whether an API key has been configured.
Look up imported Wikidata/OpenAlex concepts, search their names and connect them to keyword resources. Concept rows are binary-keyed maps, with properties from…
Check saving, language, and the page being displayed.
A validator to check whether a resource’s name is unique:
Tests if two dates are not equal.
Return the next page in a menu or collection: {{ id|next_in:container_id }} .
Keep UTF-8 characters intact while transforming user text.
Normalize an email address, used in the identity management.
Show the current date and time.
Fetch the nth tail of a list.
Numerical input and range check.
Model for OAuth2 app/client/token administration and user token listings.
Model for OAuth2 consumer configuration and token access, including consumer lists and per-consumer token retrieval.
Model for OAuth2 service flow helpers, including redirect URL generation and oauth redirect processing.
Modify the list of collaboration groups of a user. Called internally by the ACL modules when fetching the list of collaboration groups a user is member of.
Set the context to a typical authenticated user. Used by m_acl.erl
Check if a user is authorized to perform an operation on a an object (some resource or module). Observe this notification to do complex or more fine-grained…
Check if a user is authorizded to perform an action on a property. Defaults to true .
Check if a user is the owner of a resource. id is the resource id.
Clear the associated access policy for the context.
Initialize context with the access policy for the user.
Return the maximum upload size in bytes for the current user, as defined by the ACL configuration.
Return the groups for the current user.
Modify the list of user groups of a user. Called internally by the ACL modules when fetching the list of user groups a user is member of.
Render the javascript for a custom action event type. The custom event type must be a tuple, for example: {% wire type={live id=myid} action={...} %}</code>…
An activity in Zotonic. When this is handled as a notification then return a list of patterns matching this activity. These patterns are then used to find…
Push a list of activities via a ‘channel’ (eg ‘email’) to a recipient. The activities are a list of #activity{} records.
Used in the admin to fetch the possible blocks for display
Used for fetching the menu in the admin.
Used in the admin to process a submitted resource form
Declare events that Site Analytics can record. This is a foldl notification, starting with an empty list. Prepend your declarations to the accumulator and…
Notify after logon of user with username, communicates valid or invalid password
Send a request to the client to login a user. The zotonic.auth.worker.js will
Send a request to the client to switch users. The zotonic.auth.worker.js will
Confirm a user id.
A user id has been confirmed.
Return the list of identity types that allow somebody to logon and become an active user of the system. Defaults to [ username_pw ]. In the future more types…
User is about to log off. Modify (if needed) the logoff request context.
User logs on. Add user-related properties to the logon request context.
Update the given (accumulator) authentication options with the request options.
First for logon of user with username, called after successful password check.
First for logon of user with username, check for ratelimit, blocks etc.
First to check for password reset forms, return undefined, ok, or {error, Reason}.
First to validate a password. Return {ok, RscId} or {error, Reason}.
Authentication against some (external or internal) service was validated
Save (and update) the complete category hierarchy
Notification to signal an inserted comment. ‘comment_id’ is the id of the inserted comment, ‘id’ is the id of the resource commented on.
Check and possibly modify the http response security headers All headers are in lowercase.
Handle a content security report
Get available content types and their dispatch rules Example: {{<<”text”>>, <<”html”>>, []}, page} A special dispatch rule is ‘page_url’, which refers to the…
Set CORS headers on the HTTP response.
Add custom pivot fields to a resource’s search index (map) Result is a single tuple or list of tuples {pivotname, props} , where “pivotname” is the pivot…
Push some information to the debug page in the user-agent. Will be displayed with io_lib:format(“~p: p n”, [What, Arg]), be careful with escaping information!
Runs the development make process and reloads newly compiled BEAM files after a manual request.
Reloads templates, modules, translations, and other indexed development files after a manual request.
Final try for dispatch, try to match the request. Called when the site is known, but no match is found for the path
Try to find the site for the request Called when the request Host doesn’t match any active site.
Rewrite a URL before it will be dispatched using the z_sites_dispatcher
Handle a new file received in the ‘files/dropbox’ folder of a site. Unhandled files are deleted after an hour. If the handler returns ‘ok’ then the file is…
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.
An edge has been updated. Note that the Context for this notification does not have the user who updated the edge.
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 is set to ‘undefined’. This can happen if…
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 the handler was registered.
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 context.
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.
Notification sent to a site when e-mail for that site is received
Add a handler for receiving e-mail notifications
Notify that we sent an e-mail (there might be a bounce later...) The Context is the depickled z_email:send/2 context.
Email status notification, sent when the validity of an email recipient changes
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. Where Values is [ term() ], i.e. a list of…
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.
mod_export - Fetch the header for the export.
mod_export - Check if the resource or dispatch is visible for export.
Resolve managed file storage operations. Records are defined in zotonic_file.hrl .
Resolve a local storage path to a remote service, destination and credentials.
Resolve credentials for a file already registered at a remote service and location.
Perform a direct, synchronous filestore upload, download or deletion.
Broadcast some file changed, used for livereload by mod_development
Signal that the hierarchy underneath a resource has been changed by mod_menu
Check if passwords are matching. Uses the password hashing algorithms.
Notify that a user’s identity has been updated by the identity model.
Request to send a verification to the user. Return ok or an error. Handled by mod_signup to send out verification emails. Identity may be undefined, or is an…