Browse by topic

Discover Documentation

Explore related documentation through its most useful keyword groups.

1435 items

Grouped by Architecture

All Documentation

Tags

all_include

Call all modules to include a certain template.

Developer guide

A model returns an error or no value

Check the requested path and compare its binary segments with the model callback patterns. Confirm that the callback returns the unused path in the required…

Developer guide

A module is discovered but not active

Open module management for the correct site. Check whether the module is disabled, waiting for a dependency, or failing during startup.

Developer guide

A module is missing from the admin

Check that the module is an Erlang application in a discovered project directory. Confirm the application name, .app.src, main mod_... module, and successful…

Models

analytics

Read Site Analytics reports, manage recordings and submit trusted server-side events.

Developer guide

Anatomy of a site application

A typical site contains the following directories. Create only the extension directories you actually need.

Actions

animate

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

Developer guide

An uploaded image does not display

Check whether the resource has an original file and whether its media information describes that file correctly. Then inspect the preview request in the…

Developer guide

A page is slow

Measure one representative request and identify whether time is spent in the browser, network, or server. Compare an initial request with a repeated request to…

Filters

append

Appends the argument to the value.

Filters

as_atom

Convert a value to an Erlang atom.

Developer guide

A saved change does not appear

Check each stage in order: the edited file, build output, loaded application, active module, selected template, and browser response.

Developer guide

A site does not start

Run bin/zotonic status to distinguish an unavailable node from a stopped or failing site. Inspect the relevant startup log before repeatedly restarting it.

Developer guide

A site does not start

Run bin/zotonic status to distinguish an unavailable node from a stopped or failing site. Inspect the relevant startup log before repeatedly restarting it.

Developer guide

A URL reaches the wrong page

Confirm the hostname, site, and path from the actual request. Use the dispatch trace to see the selected rule and any rewritten path.

Models

auth2fa

Model for two-factor authentication state and setup, including TOTP QR/image generation, mode checks, reset checks, and clock skew checks.

Actions

auth_disconnect

Disconnect an external authentication identity from a resource.

Models

authentication

Model for authentication state and login support checks, including password authentication flow helpers and reminder/verification actions.

Tags

autoescape

Automatically apply HTML escaping to values.

Developer guide

Automatic recompilation and file watching

Zotonic's file handler watches source changes when a supported watcher is available. Erlang, templates, dispatch files, and assets have different handlers.

Models

backup

Model for backup configuration and operational status, including backup permissions, listing, directory, encryption settings, and active backup state.

Models

backup_revision

Model for resource revision backup metadata, including revision list/title retrieval and revision retention settings.

Filters

before

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

Tags

block

Define a template block and overrules a template block from an inherited template.

Filters

brlinebreaks

Translate HTML <br/> elements into ASCII newlines ( \n ).

Developer guide

Build and serve frontend assets

Keep source files such as SCSS in priv/lib-src and compiled assets in priv/lib. Use an app-level Makefile that delegates asset work to the source directory's…

Developer guide

Build and serve frontend assets

Keep source files such as SCSS in priv/lib-src and compiled assets in priv/lib. Use an app-level Makefile that delegates asset work to the source directory's…

Developer guide

Build and start Zotonic

Compile Zotonic, start it, check the status page, and continue to your first site.

Scomp

button

Makes a button with an action attached.

Actions

buttonize

Add button interaction classes to an element.

Tags

cache

Cache frequently used rendered template output for later reuse.

Developer guide

Cache a template fragment

First measure the work performed by the fragment. Cache a fragment only when you know which inputs and data changes affect its output.

Models

cafs

Site-local content-addressable file storage (CAFS) for originals, explicit previews such as video posters, and generated image variants. Identical bytes share…

Tags

call

Call an Erlang function.

Filters

capfirst

Converts the first character of the value to uppercase.

Tags

catcompose

Compose another template based on the category of a resource.

Models

category

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

Tags

catinclude

Include another template based on the category of a resource. The include tag is replaced with the contents of the included template file. You can give…

Filters

center

Centers the value in a field of a certain width using spaces.

Developer guide

Change a runtime setting deliberately

Use bin/zotonic setconfig only for a global setting that supports a runtime change. The command changes the running configuration and does not save the value…

Cotonic

Change log Cotonic

1.9.0 — Sep 1, 2026 — Diff — Docs — Download

Scomp

chart

Render a chart without JavaScript, CSS, external services, or external assets.

Scomp

chart_donut

Render a donut chart as inline SVG.

Scomp

chart_pie

Render a pie chart as inline SVG.

Scomp

chart_pie3d

Deprecated compatibility alias for scomp#chart_pie.

Developer guide

Check a rendered template

Render the changed page with realistic content. Include missing optional fields, a long title, several list items, and a second language when applicable.

Developer guide

Check template references

Open Cross-reference check of templates in the Development page and run the check. Read each reported reference with the active module set in mind.

Filters

chunk

This filter splits a list in shorter lists. It splits an array in sub-arrays of at most a given length. This is useful when displaying a list of items in…

Models

clamav

Reports whether the ClamAV daemon ( clamd ) is available. The m.clamav.is_available model path sends a ping and returns true when the daemon responds with PONG…

Models

comment

Model for comments attached to resources. It provides listing, moderation checks, counting, and retrieval of individual comments.

Tags

comment

Ignore part of a template.

Tags

compose

Compose another template and override its named blocks.

Models

config

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

Actions

config_delete

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

Actions

config_toggle

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

Reference

Configuration

Global configuration Site configuration Port configurations