Browse by topic

Discover Documentation

Explore related documentation through its most useful keyword groups.

1435 items

Grouped by Architecture

All Documentation

Filters

menu_flat

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

Filters

menu_ids

Returns all resource ids in a menu. Could return invisible and non existing resource ids. The returned ids are a flat list, the hierarchy of the menu is lost.

Filters

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 kept in the list. Note that sub-menus…

Filters

menu_rsc

Return the menu to be displayed with a resource.

Filters

menu_subtree

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

Filters

menu_trail

Return a breadcrumb navigation trail for the given id.

Filters

merge_tags

A mail-merge like filter where tag-expressions in a text are replaced with the value of their evaluation.

Models

m_exchange_rates

Read currency rates and convert amounts using the site's mod_exchange_rates server. Rates express currency units per USD and may be retained from earlier…

Models

m_geomap

Expose GeoMap configuration and country-map data to templates and model GET requests.

Models

microsoft

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

Filters

min

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

Filters

minmax

Force the given value in the given range.

Modules

mod_access_url

Share protected pages, images and feeds using signed URLs with the signing user's view permissions. Recipients do not need to log in as that user. Typical uses…

Modules

mod_acl_mock

Mocking module for access control during tests.

Modules

mod_admin

Admin backend module that wires the core admin interface, assets, and admin-specific event handling.

Modules

mod_admin_config

Add support for editing the site’s configuration values, as accessed through model#config.

Dispatch rules

mod_admin dispatch rules

URL dispatch rules defined by mod_admin in apps/zotonic_mod_admin/priv/dispatch/dispatch.

Modules

mod_admin_frontend

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

Modules

mod_admin_identity

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

Modules

mod_admin_keyword

Add keyword analysis tools to the Zotonic administration interface.

Modules

mod_admin_merge

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

Modules

mod_admin_modules

Adds support in the admin for activating and deactivating modules.

Modules

mod_admin_predicate

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

Modules

mod_admin_statistics

Admin module exposing site statistics views and related dashboard metrics.

Modules

mod_agent_discovery

Advertise bounded anonymous reads and existing resource export through /llms.txt , /.well-known/api-catalog , /openapi.json and /api-help .

Modules

mod_analytics

Site Analytics measures site traffic, popular content, outgoing email activity and module-defined events without an external tracker. It helps operators…

Dispatch rules

mod_analytics dispatch rules

URL dispatch rules defined by mod_analytics in apps/zotonic_mod_analytics/priv/dispatch/dispatch.

Modules

mod_artwork

This module contains many useful icons and images.

Modules

mod_audio

Adds support for viewing and handling audio medium items.

Modules

mod_auth2fa

Two-factor authentication module adding TOTP setup, verification flows, and related auth checks.

Dispatch rules

mod_auth2fa dispatch rules

URL dispatch rules defined by mod_auth2fa in apps/zotonic_mod_auth2fa/priv/dispatch/dispatch.

Modules

mod_authentication

This module contains the main Zotonic authentication mechanism. It contains the logon and logoff controllers, and implements the various hooks as described in…

Modules

mod_backup

mod_backup serves two different purposes: it makes a nightly backup of your files and database, and can also backup/restore individual resource items.

Modules

mod_base

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

Dispatch rules

mod_base dispatch rules

URL dispatch rules defined by mod_base in apps/zotonic_mod_base/priv/dispatch/dispatch.

Modules

mod_bootstrap

Adds support for the Bootstrap CSS / JavaScript framework.

Modules

mod_clamav

Uses clamd to scan all uploaded files for viruses.

Modules

mod_comment

Implements a basic commenting system, enabling commenting on resources.

Dispatch rules

mod_comment dispatch rules

URL dispatch rules defined by mod_comment in apps/zotonic_mod_comment/priv/dispatch/dispatch.

Modules

mod_contact

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

Dispatch rules

mod_contact dispatch rules

URL dispatch rules defined by mod_contact in apps/zotonic_mod_contact/priv/dispatch/dispatch.

Modules

mod_content_groups

Module for content group support and ACL-aware content group behavior.

Modules

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 subsequent cookies).

Modules

mod_copyright

Module for copyright metadata, rights statements, attribution, and source provenance.

Modules

mod_cron

Provides periodic tick notifications and module-defined cron job scheduling.

Modules

mod_custom_redirect

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

Modules

mod_development

Inspect and debug running Zotonic sites. Enable this module to add System > Development to the admin, with template and dispatch inspection, tracing, source

Modules

mod_editor_tiptap

Adds a rich-text editor based on Tiptap and ProseMirror to Zotonic forms. It provides headings, emphasis, lists, links, Zotonic media, tables, undo/redo, and…

Cotonic models

model/activity Cotonic

model/activity Publishes browser activity observed by Zotonic's wires script. This is an event-only model: it has no get , post , or delete operations and no…

Cotonic models

model/alert Cotonic

model/alert Displays a Zotonic alert dialog through the wires script and z_dialog_alert . The page must have the normal Zotonic dialog support loaded.

Cotonic models

model/auth Cotonic

model/auth Owns browser authentication state and communicates with /zotonic-auth . It checks and refreshes authentication, manages login/logout and password…

Cotonic models

model/auth-ui Cotonic

model/auth-ui Manages Zotonic's login, reminder, verification, reset, and password-change views. The standard _logon.tpl starts the worker and supplies the…

Cotonic models

model/autofocus Cotonic

The autofocus model looks for elements with the autofocus attribute which are just added to the dom tree. When this happens, it auto focusus them.

Cotonic models

model/clipboard Cotonic

model/clipboard Copies text using the browser Clipboard API. Implemented in the wires script. Browser clipboard availability and permission rules still apply.

Cotonic models

model/console Cotonic

model/console Writes structured messages to the browser console and answers diagnostic pings. Implemented in the wires script.

Developer guide

Model content with categories and predicates

Use a category to describe what a resource is, such as an article or event. Use a predicate to describe a relationship between two resources, such as an author…

Cotonic models

model/dedup Cotonic

The dedup model implements message deduplication. It works by sending a message to the dedup model, the dedup model then relays the message to a…

Cotonic models

model/document Cotonic

The document model can be used to retrieve details about the current document.

Cotonic models

model/fileuploader Cotonic

model/fileuploader Queues browser files and uploads them in chunks through mod_fileuploader . The _fileuploader_worker.tpl include starts the worker. It…

Cotonic models

model/lifecycle Cotonic

Application lifecycle is a key way that modern operating systems manage resources. On Android, iOS, and recent Windows versions, apps can be…

Cotonic models

model/loadmore Cotonic

model/loadmore Replaces a loader element with a server-rendered template. Include js/models/loadmore.js from mod_base on pages that use this model.

Cotonic models

model/localStorage Cotonic

get/+key Gets item key from localStorage. Returns the content as payload.

Cotonic models

model/location Cotonic

The location model can be used to retrieve information on the current location of the page. It also allows subscription to location changes.

Cotonic models

model/oauth Cotonic

model/oauth Coordinates an OAuth authorization or redirect page. The worker is provided by mod_oauth2 and advertises model/oauth as a dependency capability. It…

Cotonic models

model/password Cotonic

model/password Toggles password visibility in the browser. Implemented in the wires script, loaded by the standard Zotonic JavaScript includes. It works with…

Cotonic

Models Cotonic

Because workers run as independent components it is not possible to directly call api's. Some api's are also not available to web workers. Models…

Cotonic models

model/serviceWorker Cotonic

The serviceWorker model makes it possible to communicate with other tabs from the same site. This makes it possible to communicate important state…

Cotonic models

model/sessionId Cotonic

The sessionId model manages a browser identifier stored as JSON under cotonic-sid in localStorage. It is shared by pages on the same…

Cotonic models

model/sessionStorage Cotonic

The sessionStorage model provides access to the sessionStorage of the browser. It makes it possible to set and retrieve values via mqtt…

Cotonic models

model/ui Cotonic

The ui model can be used to update the dom by publishing messages on one of the model/ui/# topics. Elements can be inserted, deleted and updated.

Cotonic models

model/window Cotonic

The window model can be used open and close windows.

Cotonic models

model/wires Cotonic

model/wires Connects Cotonic messages to named Zotonic events through the wires script.

Modules

mod_email_dkim

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

Modules

mod_email_receive

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

Modules

mod_email_relay

This module supports relaying email between Zotonic servers.

Modules

mod_exchange_rates

Fetch currency exchange rates from the ECB daily XML feed and expose them through m_exchange_rates , the exchange_rates template filter and Erlang functions.