Notifications
This is a list of all built-in notifications that Zotonic sends. Observe these notifications in your code to add custom functionality.
This is a list of all built-in notifications that Zotonic sends. Observe these notifications in your code to add custom functionality.
Validators Reference Installation requirements
A module has been stopped and deactivated.
Handle an uploaded file which is part of a multiple file upload from a user-agent. The upload is a #upload record or a…
Fold for mapping non-iolist output to iolist values. Used when outputting a rendered HTML tree. Folded accumulator is:…
Fetch the url of a resource’s html representation
Foldr to change or add pivot fields for the main pivot table. The rsc contains all rsc properties for this resource
Fold over the resource props map to extend/remove data to be pivoted
Pivot just before a m_rsc_update update. Used to pivot fields before the pivot itself.
Message sent by a user-agent on a postback event. Encapsulates the encoded postback and any additional data. This is…
Handle a javascript notification from the postback handler. The message is the the request, trigger the id of the…
Refresh the context or request process for the given request or action Called for every request that is not anonymous…
Let all modules add resource specific response headers to the request. The accumulator is the list of headers to be set.
Resource will be deleted. This notification is part of the delete transaction, it’s purpose is to clean up associated…
Resource is read, opportunity to add computed fields Used in a foldr with the read properties as accumulator.
Fetch the data for an import of a resource. Returns data in the format used by m_rsc_export and m_rsc_import. Either…
Foldr for an resource insert, these are the initial properties and will overrule the properties in the insert request.
Map to signal merging two resources. Move any information from the loser to the winner. The loser will be deleted.
Signal that a resource pivot has been done.
Send a notification that the resource ‘id’ is added to the query query_id.
An updated resource is about to be persisted. Observe this notification to change the resource properties before they…
An updated resource has just been persisted. Observe this notification to execute follow-up actions for a resource…
Upload and replace the resource with the given data. The data is in the given format.
Sanitize an HTML element.
Sanitize an embed url. The hostpart is of the format: <<"youtube.com/v...">> .
Add extra javascript with the {% script %} tag. (map) Used to let modules inject extra javascript depending on the…
Map a custom search term to a #search_sql_term{} record.
Map a custom search term to a #search_sql_term{} record.
Check and possibly modify the http response security headers All headers are in lowercase.
Request API logon
Refresh the context or request process for the given request or action Called for every request that is not anonymous…
Set the language of the context to a user’s prefered language
Request a signup of a new or existing user. Arguments are similar to #signup_url{} Returns {ok, UserId} or {error
signup_check Check if the signup can be handled, a fold over all modules. Fold argument/result is {ok, Props
Signal that a user has been confirmed. (map, result is ignored)
Fetch the page a user is redirected to after signing up with a confirmed identity
Signal that a user has been signed up (map, result is ignored)
Signup failed, give the error page URL. Return {ok, Url} or undefined. Reason is returned by the signup handler for the…
Handle a signup of a user, return the follow on page for after the signup. Return {ok, Url} ‘props’ is a map with…
Request the SSL certificates for this site. The server_name property contains the hostname used by the client. (first…
Fetch list of handlers for survey submits.
survey_is_allowed_results_download
Check if the current user is allowed to download a survey.
Check if a question is a submitting question.
Add header columns for export. The values are the names of the answers and the text displayed above the column. The…
Modify row with answers for export. The header columns are given and the values that are known are set in the folded…
A survey has been filled in and submitted.
Delete a value from the typed key/value store
Get a value from the typed key/value store
Put a value into the typed key/value store
Request a translation of a list of strings. The resulting translations must be in the same order as the request. This…
Make a generated URL absolute, optionally called after url_rewrite by z_dispatcher
Determine the URL fetch options for fetching the content of an URL. Used by z_fetch.erl.
Rewrite a URL after it has been generated using the z_dispatcher
Set #context fields depending on the user and/or the preferences of the user.
Check if a user is enabled. Enabled users are allowed to log in. Return true , false or undefined . If undefined is…
Called just before validation of all query arguments by z_validation. This is the moment to filter any illegal…