Reference

All Reference

m_client_local_storage

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

m_client_session_storage

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

m_comment

Accesses comments on a page.

m_config

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

m_config_update

Site configuration parameter was changed

m_config_update_prop

Site configuration parameter was changed

m_content_group

Not yet documented.

m_copyright

Not yet documented.

m_custom_redirect

Not yet documented.

md5

Translates a string to a md5 hex value.

m_development

Not yet documented.

m_edge

Access information about page connections.

media

Show embed, video or audio media.

media_for_language

Filter a list of media items by their medium_language property, return the best matching with the current or given…

media_identify_extension

Try to find a filename extension for a mime type (example: “.jpg”)

media_identify_file

Try to identify a file, returning a map with file properties.

media_import

Notification to translate or map a file after upload, before insertion into the database Used in mod_video to queue…

media_import_medium

Notification to import a medium record from external source. This is called for non-file medium records, for example…

media_import_props

Notification to translate or map a file after upload, before insertion into the database Used in mod_video to queue…

Media notifications

media_identify_extension media_identify_file media_import media_import_medium media_preview_options media_import_props…

media_preview_options

Modify the options for an image preview url or tag. This is called for every image url generation, except if the…

media_replace_file

Notification that a medium file has been changed (notify) The id is the resource id, medium contains the medium’s…

media_stillimage

See if there is a ‘still’ image preview of a media item. (eg posterframe of a movie) Return:: {ok, ResourceId} or…

media_update_done

Media update done notification. action is ‘insert’, ‘update’ or ‘delete’

media_upload_preprocess

Notification to translate or map a file after upload, before insertion into the database Used in mod_video to queue…

media_upload_props

Notification that a medium file has been uploaded. This is the moment to change properties, modify the file etc. The…

media_upload_rsc_props

Notification that a medium file has been uploaded. This is the moment to change resource properties, modify the file…

media_viewer

Request to generate a HTML media viewer for a resource

media_viewer_consent

Optionally wrap HTML with external content so that it adheres to the cookie/privacy settings of the current site…

m_editor_tinymce

Not yet documented.

m_email_dkim

DomainKeys Identified Mail Signatures (RFC 6376) is a method to add a signature to outgoing emails. This enables…

m_email_receive_recipient

Not yet documented.

m_email_status

Tracks the send/bounce/error status of all outgoing emails.

member

Finds a value in a list.

menu

Show a page menu.

Menu

menu_flat menu_ids menu_is_visible menu_expand menu_rsc menu_subtree menu_trail

menu_expand

Takes a menu, or a menu resource id, and adds all haspart objects connected to the menu ids.

menu_flat

Flattens the rsc menu structure for use in a template loop.

menu_ids

Returns all resource ids in a menu. Could return invisible and non existing resource ids. The returned ids are a flat…

menu_is_visible

Filters a list of menu items on visibility and existance. Only top-level menu items that are both visible and exist are…

menu_rsc

Return the menu to be displayed with a resource.

menu_rsc

Fetch the menu id belonging to a certain resource

menu_save

Save the menu tree of a menu resource

menu_subtree

Get the subtree of an id in a menu (if any).

menu_trail

Return a breadcrumb navigation trail for the given id.

m_facebook

Not yet documented.

m_filestore

The filestore uses two tables for its administration.

m_fileuploader

Model to start uploads, upload a block and delete uploads.

m_hierarchy

The category hierarchy tables have been replaced by m_hierarchy . This model defines named hierarchies of resources…

middleware

Delegates the request processing.

m_identity

The m_identity model manages usernames and other user identities. mod_authentication uses it to store and check salted…

m_image_edit

Manages the medium_edit_settings property for non destructive image editing.

m_import_csv_data

Not yet documented.

min

Take the minimum of the filter value and its first argument.

minmax

Force the given value in the given range.

Miscellaneous

gravatar_code ip2country ip2geo is_letsencrypt_valid_hostname format_dispatch_controller_option…

m_l10n

Not yet documented.

m_linkedin

Not yet documented.

m_log

Not yet documented.

m_log_email

Not yet documented.

m_log_ui

Not yet documented.

m_mailinglist

Not yet documented.

m_media

Access to data about uploaded files and other media.

m_microsoft

Check with useauth if the authentication using the Microsoft identity platform is enabled and configured.

m_modules

Access information about which modules are installed and which ones are active.

m_mqtt_ticket

A ticketing system for out of band MQTT posts via HTTP.

m_oauth2

Not yet documented.

m_oauth2_consumer

Not yet documented.

m_oauth2_service

Not yet documented.

mod_acl_mock

Mocking module for access control during tests.

mod_acl_user_groups

This module adds rule-based access control.

mod_admin

Extending the admin menu See m_admin_menu on how to extend the admin menu.

mod_admin_category

Add support for editing Categories in the admin, by presenting an editable category tree at http://yoursite.com/admin…

mod_admin_config

Add support for editing the site’s configuration values, as accessed through m_config.

mod_admin_frontend

Adds editing of resources, menu-trees and collections for non-admin users.

mod_admin_identity

Provides identity management in the admin - for example the storage of usernames and passwords.

mod_admin_merge

Adds functonality to merge two pages together into a single page.

mod_admin_modules

Adds support in the admin for activating and deactivating modules.

mod_admin_predicate

Add support for editing predicates in the admin, by presenting a list of all defined predicates on http://yoursite.com…

mod_artwork

This module contains many useful icons and images.

mod_audio

Adds support for viewing and handling audio medium items.

mod_authentication

This module contains the main Zotonic authentication mechanism. It contains the logon and logoff controllers, and…

mod_backup

mod_backup serves two different purposes: it makes a nightly backup of your files and database, and can also backup…

mod_base

mod_base is the base module, which acts as a container module holding most of Zotonic basic dispatch rules, Actions and…

mod_bootstrap

Adds support for the Twitter Bootstrap CSS / JavaScript framework.

mod_clamav

Uses clamd to scan all uploaded files for viruses.

mod_comment

Implements a basic commenting system, enabling commenting on resources.

mod_contact

Implements a basic contact form, which gets emailed to the configuration value mod_contact.email , when submitted.

mod_cookie_consent

Wrap external content in such a way that it is only loaded if the user consented to the inclusion of the content (and…

mod_cron

Provides periodic events.

mod_custom_redirect

Enables redirects from unknown hosts and paths to other locations. The other location can be a known path or another…

mod_development

Presents various tools for development.

mod_editor_tinymce

Adds wysiwyg tinyMCE editors to the admin.

mod_email_dkim

Signs outgoing e-mails with DomainKeys Identified Mail Signatures ( RFC 6376).

mod_email_receive

Enables the Zotonic site to receive emails for the site’s users. The user’s email address is username@hostname , where…

mod_email_relay

Enables the Zotonic site to relay emails for the site’s users to their real email addresses.