Browse by topic

Discover Documentation

Explore related documentation through its most useful keyword groups.

1435 items

Grouped by Architecture

All Documentation

Developer guide

Create a reusable module

Create apps_user/zotonic_mod_garden with the following files. This example adds a discoverable module without starting an extra process.

Cookbook

Create a reusable module

Create apps_user/zotonic_mod_garden with the following files. This example adds a discoverable module without starting an extra process.

Developer guide

Create your first site

Create the garden blog, open it in your browser, and sign in to its admin.

Developer guide

Create your first site

Create the garden blog, open it in your browser, and sign in to its admin.

Developer guide

Create your first site

Create the garden blog, open it in your browser, and sign in to its admin.

User guide

Creating a page

Start a new page with the right category and language.

User guide

Creating a quiz

Mark correct answers, set scores, and choose the feedback respondents see.

User guide

Creating a user

Set up an account when your role allows user management.

Developer guide

CSS classes used in templates

If you are building a website then you might want to use the standard dialogs, overlays, authentication and other parts of Zotonic. To make those look like…

Validators

custom

Support for custom client-side (JavaScript-based) validators.

Models

custom_redirect

Model for custom redirect records, exposing redirect list and individual redirect lookup by id.

Tags

cycle

Rotate through a list of values.

Validators

date

Validate input date against a given date format.

Filters

date

Formats a date or datetime according to the format specified in the argument.

Filters

datediff

Calculate the difference between two dates, returning a single part of that difference.

Scomp

debug

Shows which variables are assigned for use in the current template’s scope:

Filters

default

Provide an alternative value in case a value has a falsy value (0, false , undefined or empty string).

Filters

default_if_none

Provide an alternative value in case a value is undefined.

Actions

delete_media

Delete a media file from a resource, without confirmation.

Actions

delete_rsc

Delete a resource, without confirmation.

Actions

delete_username

Delete the username from a user, no confirmation.

Developer guide

Deploy a repeatable release

Record the code revision, build steps, configuration changes, and schema changes for the release. Build and test the same revision in an acceptance environment…

Developer guide

Developer guide

Build, inspect, and maintain Zotonic sites and modules.

Models

development

Provide the development admin's settings, tracing controls, observer lists, dispatch information, and editor integration.

Models

development_capture

Capture template rendering and browser console output from an open page without losing its current state. Use this model with model#development_tools to…

Filters

development_filename

Format a source filename for display in development tools. Resolves symbolic links in both files and parent directories, then removes the Zotonic root…

Models

development_tools

Inspect a running site's dispatch rules, template resolution, source, composition, and available model APIs. Combine this model with model#development_capture…

Developer guide

Develop Zotonic sites with LLM tools

Develop Zotonic sites with LLM tools Give an LLM access to the running site's dispatch rules, resolved templates, model documentation, and rendering evidence.

Developer guide

Diagnose a failed browser interaction

Reproduce one action with the browser console and network panel open. Check for a JavaScript error before the request, a failed request, or a successful…

Actions

dialog

Opens a dialog with a predefined HTML content and title.

Actions

dialog_close

Closes a dialog. When there is no dialog open then nothing happens.

Actions

dialog_config_delete

Open a dialog that asks confirmation to delete a configuration key/value pair.

Actions

dialog_config_new

Open a dialog to create a new configuration key/value pair.

Actions

dialog_duplicate_rsc

Open a dialog to duplicate the current resource with a new id and title.

Actions

dialog_edit_basics

Open a dialog to edit the “basic” information of a resource.

Actions

dialog_mailing_page

Shows the dialog to mail the current page ( resource) to a mailing list. This is used in the admin “mailing status” interface. A mailing can be sent…

Actions

dialog_mail_page

Shows the dialog to mail the current page ( resource) to a single e-mail address. This is used in the frontend of a site to “share” the current page over e

Actions

dialog_new_rsc

Show the admin dialog for creating a new resource.

Actions

dialog_open

Renders a template on the server and opens a dialog with the HTML output of the template.

Actions

dialog_user_add

Show a dialog for adding a user. This creates a person resource and adds a username / password to it.

Actions

disable

Sets the “disabled” attribute of a HTML tag and adds the CSS class “disabled”.

Models

dispatch

Dispatch or generate URLs or page paths. Useful to check dispatch rules or for client side code to dispatch page paths.

Developer guide

Display images with mediaclasses

Define reusable image sizes in priv/templates/mediaclass.config and use them in image tags. For example, a local mediaclass can constrain an image's width:

Developer guide

Display images with mediaclasses

Define reusable image sizes in priv/templates/mediaclass.config and use them in image tags. For example, a local mediaclass can constrain an image's width:

Scomp

draggable

Mark a html element as draggable.

Scomp

droppable

Mark an element as valid drag destination.

Models

edge

Access information about page connections.

User guide

Editing a page

Change existing content and check the result.

Actions

editor_add

Add WYSIWYG editor controls to the textareas selected by the target. The active editor integration, such as TinyMCE, implements the actual controls; the action…

Actions

editor_remove

Remove WYSIWYG editor controls from the textareas selected by the target. Use this before replacing or moving editor-managed markup so the editor can release…

Models

editor_tinymce

Model exposing TinyMCE editor version metadata used by admin/editor integration.

Actions

effect

Run a jQuery UI effect on the target element.

Filters

element

Select an element from a tuple or list of tuples.

Validators

email

Check if the content of the input field is an e-mail address.

Models

email_dkim

DomainKeys Identified Mail Signatures (RFC 6376) is a method to add a signature to outgoing emails. This enables recipients to check who sent an email and if…

Models

email_receive_recipient

Model for received-email recipient extraction and matching used by mod_email_receive.

Models

email_relay

Model for email relay API endpoints, handling relay delivery requests and relay status updates.

Models

email_status

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

Validators

email_unique

Check if an entered e-mail address is unique by querying model#identity for the email key:

Filters

embedded_media

Fetch media ids that are embedded in the body , body_extra and text blocks of your page.

Actions

enable

Resets the “disabled” attribute of a HTML tag and removes the CSS class “disabled”.

Developer guide

Enable the Development module

Sign in to the local site's admin as an administrator. Open the module management page, find Development (mod_development), and activate it if necessary.

Filters

eq_day

Tests if the value is a date and equal to the argument. The value and the argument must be a tuple of the format {Y,M,D} or {{Y,M,D},{H,I,S}} .

Reference

Erlang translation API: z_trans

Erlang translation API: z_trans z_trans is part of zotonic_core . It resolves gettext interface messages and language alternatives. For concepts and catalog…

Filters

escape

HTML escape a text. Escapes all reserved HTML characters in the value. Escaped strings are safe to be displayed in a HTML page. When you echo a query string…