Text
Email status notification, sent when the validity of an email recipient changes
Foldr to change or add pivot fields for the main pivot table. The rsc contains all rsc properties for this resource
Hide an element by animating the height and opacity.
Show an element by animating the height and opacity.
Hide an element by animating the height.
Show an element by animating the height.
Hide an element by animating the opacity.
Hide an element without any animation.
Show an element without any animation.
Toggle the visibility of an element.
Show an element by animating the opacity.
Translates a datetime from local time to UTC.
Show a readable version of a date/time difference.
Subtracts a year from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Subtracts a week from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Subtracts a month from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Subtracts a day from a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Tests if two dates are not equal.
Tests if a date is in the past.
Tests if a date is in the future.
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
Calculate the difference between two dates, returning a single part of that difference.
Show a date range.
Adds a year to a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Adds a week to a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Adds a month to a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Adds a day to a date. The value must be of the form {{Y,M,D},{H,I,S}} .
add_hour add_day add_month add_week add_year date date_range datediff eq_day in_future in_past ne_day sub_hour sub_day…
Extract a summary from a resource.
Adds functonality to merge two pages together into a single page.
Dispatch rules Name Path Resource Args admin_merge_rsc [“admin”,”merge”,id] controller_admin_edit [{template
Show a JavaScript confirm message and on confirmation triggers one or more actions and/or sends a postback to the…
Show an alert dialog.
alert confirm growl
Used after a media item is selected in the media chooser for the TinyMCE editor.
Port configurations can be tricky, especially in combination with SSL. Here we explain all steps to come to a correctly…
The following environment variables influence how Zotonic starts up.
Localization of Zotonic. Provides lookups for country, month, week names. Localization module providing locale, country
Dispatch rules Name Path Resource Args admin_l10n [“admin”,”localization”] controller_admin [{template,”admin_l10n.
Remove any WYSIWYG editor controls from all textarea’s with the z_editor class in the target.
Uses clamd to scan all uploaded files for viruses.
Adds support in the admin for activating and deactivating modules.
Activate/deactivate a module in the module manager in the admin interface.
Return the groups for the current user.
MQTT acl check, called via the normal acl notifications. Actions for these checks: subscribe, publish
Initialize context with the access policy for the user.
Check if a user is the owner of a resource. id is the resource id.
Check if a user is authorizded to perform an action on a property. Defaults to true .
Check if a user is authorized to perform an operation on a an object (some resource or module). Observe this…
acl_context_authenticated acl_is_allowed acl_is_allowed_prop acl_is_owner acl_logoff acl_logon acl_mqtt acl_user_groups…
Used for fetching the menu in the admin.
This module implements a mailing list system. You can make as many mailing lists as you like and send any page to any…
controller_admin_mailing_preview
This controller shows a preview of what a resource that is being mailed would look like, in a popup window.
Notification that a medium file has been uploaded. This is the moment to change properties, modify the file etc. The…
Released on 2011-02-12.
HTML escape a text. Escapes all reserved HTML characters in the value. Escaped strings are safe to be displayed in a…
Escape the value according to the RFC2445 rules.
Creates a temporary resource if its input value is not defined.
Filter to split multi-value survey answers on the '#' character.
Presents various tools for development.
Model for development and diagnostics controls, including tracing flags, observer lists, cache/compile/reindex actions
These notes list the most important changes between Zotonic versions. Please read these notes carefully when upgrading…
This section describes the location and contents of Zotonic’s global configuration files erlang.config and zotonic.
Note
Released on 2013-07-02 20:53 by arjan.
Check if a user is enabled. Enabled users are allowed to log in. Return true , false or undefined . If undefined is…
Handle a signup of a user, return the follow on page for after the signup. Return {ok, Url} ‘props’ is a map with…
Signup failed, give the error page URL. Return \{ok, Url\} or undefined. Reason is returned by the signup handler for…
Signal that a user has been signed up (map, result is ignored)
observe_signup_confirm_redirect/2
Fetch the page a user is redirected to after signing up with a confirmed identity
Signal that a user has been confirmed. (map, result is ignored)
signup_check Check if the signup can be handled, a fold over all modules. Fold argument/result is \{ok, Props
Request a signup of a new or existing user. Arguments are similar to #signup_url\{\} Returns \{ok, UserId\} or \{error
Refresh the context or request process for the given request or action
Refresh the context or request process for the given request or action
Set the language of the context to a user’s prefered language
Handle a user logon. The posted query args are included. Return:: {ok, UserId} or {error, Reason}
Check where to go after a user logs on.
Notify that a user’s identity has been verified. Signals to modules handling identities to mark this identity as…
observe_identity_verification/2
Request to send a verification to the user. Return ok or an error. Handled by mod_signup to send out verification…
observe_identity_password_match/2
Check if passwords are matching. Uses the password hashing algorithms.
identity_password_match identity_verification identity_verified identity_update_done logon_options logon_ready_page…
Provides identity management in the admin - for example the storage of usernames and passwords.
Check if an entered e-mail address is unique, by looking in the m_identity table for the email key:
Check if an entered username is unique, by looking in the m_identity table for the given username:
Welcome to Zotonic 0.42.0, released on 5 November, 2018.
Customizing the style of an admin page
How to make style customizations to admin pages.
Just enough Erlang/OTP and rebar, part 1
Zotonic source code have you scratching your head? Learn Rebar first.
Just enough Erlang/OTP and rebar, part 2
Building a gen_server to front the library and generating documentation.
observe_export_resource_content_type/2
mod_export - Determine the mime type for the export.
Translates the value to lower case.
Converts the first character of the value to uppercase.
Translates the value to upper case.
Add a $(..).animate jQuery call to the target element.
Techniques for finding root cause when queries are involved.
Message sent by a user-agent on a postback event. Encapsulates the encoded postback and any additional data. This is…
Send a page to a mailinglist (notify) Use \{single_test_address, Email\} when sending to a specific e-mail address.
You should validate all input data entered in forms. In Zotonic you create forms by writing plain HTML. You can attach…
Support for custom client-side (JavaScript-based) validators.
Show a message in the upper right corner of the browser window. The message will automatically disappear after some…