Reference

All Reference

acceptance

See also

acl

The m_acl model gives access the id of the currently logged in user, and provides a mechanism to do basic access…

acl_mqtt

MQTT acl check, called via the normal acl notifications. Actions for these checks: subscribe, publish

ACL notifications

acl_context_authenticated acl_is_allowed acl_is_allowed_prop acl_is_owner acl_logoff acl_logon acl_mqtt acl_user_groups…

ACL options

Authorization checks to perform, in addition to the acl_action dispatch option, can be given in the acl dispatch option

acl_rule

Not yet documented.

acl_user_group

Not yet documented.

Actions

with_args

add_class

See also

add_day

See also

add_hour

See also

add_month

Adds a month to a date. The value must be of the form {{Y,M,D},{H,I,S}} .

add_week

Adds a week to a date. The value must be of the form {{Y,M,D},{H,I,S}} .

add_year

Adds a year to a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Admin

admin_tasks redirect_incat

admin

This model exposes some meta-information for the use in mod_admin templates.

admin_blocks

Not yet documented.

admin_config

Not yet documented.

admin_dispatch

Dispatch rules Name Path Resource Args admin_user [“admin”,”users”] controller_admin [{template,”admin_users.tpl”}

admin_identity

Not yet documented.

admin_menu

This model holds the admin menu, which is built up by calling each module to add items to the menu.

admin_note

Add an editorial note to any resource.

admin_status

Not yet documented.

admin_tasks

Action module which provides postback handlers for the “status” view of the admin:

after

Return the first element after another element in a list. For example:

alert

See also

All dispatch rules

All the dispatch rules from all modules. For a background on dispatch rules, see The URL dispatch system.

all_include

See also

animate

Add a $(..).animate jQuery call to the target element.

append

See also

as_atom

Convert a value to an Erlang atom.

auth2fa

Not yet documented.

authentication

Not yet documented.

Authentication notifications

auth_checked auth_confirm auth_confirm_done auth_client_logon_user auth_client_switch_user auth_identity_types…

autoescape

Automatically apply HTML escaping to values.

backup

Dispatch rules Name Path Resource Args admin_backup [“admin”,”backup”] controller_admin_backup [seo_noindex]…

backup

Not yet documented.

Backup

backup_start

backup_revision

Not yet documented.

backup_start

Action which starts a manual backup.

before

Return the first element before another element in a list. For example:

Binaries

first last length to_binary

block

See also

button

Makes a button with an action attached.

cache

Cache frequently used rendered template output for later reuse.

call

Call an Erlang function.

capfirst

See also

category

This model can retrieve information about the resource category hierarchy in different ways.

catinclude

See also

center

See also

Character escaping

brlinebreaks escape escape_check escape_ical escape_link escapejs escapejson escapexml fix_ampersands force_escape…

chart_pie

Show a pie chart.

chart_pie3d

Show a pie chart with 3D effect.

chunk

See also

client_local_storage

Model to access the localStorage on the client (browser).

client_session_storage

Model to access the sessionStorage on the client (browser).

Command-line

The zotonic command runs a number of utility commands which all operate on a Zotonic instance.

comment

Ignore part of a template.

comment

Accesses comments on a page.

Config

config_delete config_toggle dialog_config_delete dialog_config_edit dialog_config_new

config

Zotonic has two places where a site’s configuration is kept:

config_delete

Trigger the deletion of a configuration value. Used in the admin.

config_toggle

Toggle a configuration value. Used in the admin, for instance when displaying a “live” checkbox the state of which…

Configuration

Global configuration Site configuration Port configurations

confirm

See also

content_group

Not yet documented.

controller_admin

The admin controller is the main controller behind which admin pages are served. Its main purpose is that it does an…

controller_admin_backup

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

controller_admin_comments

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.

controller_admin_config

Shows the admin config editor. Here you can edit the key/value pairs of m_config.

controller_admin_edit

The main admin edit controller. This controller serves the edit page where resources can be edited.

controller_admin_mailinglist

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.

controller_admin_referrers

Shows the list of pages ( resources) which refer to this resource through an edge.

controller_admin_seo

Shows a form with settings related to Search Engine Optimization.

controller_authentication

This controller manages all authentication cookies. It is called by the auth model in the browser.

controller_file_id

Redirect to the controller controller_file.