Reference
A validator to check whether a password conforms to the password secutiry requirements.
Check if an input value evaluates to true.
The m_acl model gives access the id of the currently logged in user, and provides a mechanism to do basic access…
MQTT acl check, called via the normal acl notifications. Actions for these checks: subscribe, publish
acl_context_authenticated acl_is_allowed acl_is_allowed_prop acl_is_owner acl_logoff acl_logon acl_mqtt acl_user_groups…
Authorization checks to perform, in addition to the acl_action dispatch option, can be given in the acl dispatch option
Model for ACL rule inspection and helper checks in mod_acl_user_groups, including insert/move checks, upload limits
Model for ACL user-group helper values in mod_acl_user_groups, including collaboration-group settings and category…
with_args
Add a css class to an html element.
Adds a day to a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Adds an hour 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 week to a date. The value must be of the form {{Y,M,D},{H,I,S}} .
Adds a year to a date. The value must be of the form {{Y,M,D},{H,I,S}} .
This model exposes some meta-information for the use in mod_admin templates.
admin_tasks redirect_incat
Model for listing editable content blocks for a resource in the admin interface.
Model for admin configuration views, including SSL certificate info, security directory info, and selected module…
Dispatch rules Name Path Resource Args admin_user [“admin”,”users”] controller_admin [{template,”admin_users.tpl”}
Model for admin identity configuration values, including password policy regex and default category/content-group for…
This model holds the admin menu, which is built up by calling each module to add items to the menu.
Todo
Add an editorial note to any resource.
Model for admin status endpoints, including Zotonic version and health/status overview values.
Action module which provides postback handlers for the “status” view of the admin:
Return the first element after another element in a list. For example:
Show an alert dialog.
See also
All the dispatch rules from all modules. For a background on dispatch rules, see The URL dispatch system.
See also
Add a $(..).animate jQuery call to the target element.
Appends the argument to the value.
Convert a value to an Erlang atom.
Model for two-factor authentication state and setup, including TOTP QR/image generation, mode checks, reset checks, and…
Todo
Model for authentication state and login support checks, including password authentication flow helpers and reminder…
auth_checked auth_confirm auth_confirm_done auth_client_logon_user auth_client_switch_user auth_identity_types…
Automatically apply HTML escaping to values.
Dispatch rules Name Path Resource Args admin_backup [“admin”,”backup”] controller_admin_backup [seo_noindex]…
Model for backup configuration and operational status, including backup permissions, listing, directory, encryption…
backup_start
Model for resource revision backup metadata, including revision list/title retrieval and revision retention settings.
Action which starts a manual backup.
Return the first element before another element in a list. For example:
first last length to_binary
See also
yesno
Translate HTML <br/\> elements into ASCII newlines ( \n ).
Makes a button with an action attached.
Todo
Cache frequently used rendered template output for later reuse.
Call an Erlang function.
Converts the first character of the value to uppercase.
This model can retrieve information about the resource category hierarchy in different ways.
See also
Centers the value in a field of a certain width using spaces.
brlinebreaks escape escape_check escape_ical escape_link escapejs escapejson escapexml fix_ampersands force_escape…
Show a pie chart.
Show a pie chart with 3D effect.
This filter splits a list in shorter lists. It splits an array in sub-arrays of at most a given length. This is useful…
Model to access the localStorage on the client (browser).
Model to access the sessionStorage on the client (browser).
The zotonic command runs a number of utility commands which all operate on a Zotonic instance.
Model for comments attached to resources. It provides listing, moderation checks, counting, and retrieval of individual…
Ignore part of a template.
Zotonic has two places where a site's configuration is kept:
config_delete config_toggle dialog_config_delete dialog_config_edit dialog_config_new
Trigger the deletion of a configuration value. Used in the admin.
Toggle a configuration value. Used in the admin, for instance when displaying a “live” checkbox the state of which…
Global configuration Site configuration Port configurations
Show a JavaScript confirm message and on confirmation triggers one or more actions and/or sends a postback to the…
Check if two inputs are the same.
Model for content-group checks, currently exposing whether a content group is in use.
Todo
Todo
The admin controller is the main controller behind which admin pages are served. Its main purpose is that it does an…
Shows the admin backup screen where you can download nightly backups that were made by mod_backup.
controller_admin_backup_revision
Shows the admin backup revisions screen where you can see older version for a resource.
controller_admin_category_sorter
Shows the admin category screen where you can edit the category tree, rearranging the categories, adding new categories
Shows an admin screen with an overview of most recently created comments. The screen offers the option to moderate the…
controller_admin_comments_settings
Shows an admin settings screen where you can edit settings related to mod_comment.
Shows the admin config editor. Here you can edit the key/value pairs of m_config.
The main admin edit controller. This controller serves the edit page where resources can be edited.
This controller shows the mailing lists that are available in the system.
controller_admin_mailinglist_recipients
Shows the recipients of the current mailing list. The recipients are listed in three columns, and have a checkbox next…
controller_admin_mailing_preview
This controller shows a preview of what a resource that is being mailed would look like, in a popup window.
controller_admin_mailing_status
This controller shows the mailing status of a resource. It lists each mailing list available in the system, and shows…
controller_admin_media_preview
A controller for rendering preview thumbnails of any media embedded in a richtext-editor component of a resource on the…
controller_admin_module_manager
Shows the list of Zotonic modules currently known to the system.
Shows the list of pages ( resources) which refer to this resource through an edge.
Shows a form with settings related to Search Engine Optimization.
controler_api processes authorized REST API requests: It provides an easy way to create API calls to allow computer…
This controller manages all authentication cookies. It is called by the auth model in the browser.
Todo
Serve an uploaded-, resized- or library file.
Redirect to the controller controller_file.