Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1370 items

Grouped by Architecture

All Text

Actions

replace

Replace the target HTML element, including the target element itself, with rendered HTML.

Modules

mod_auth2fa

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

Actions

slide_down

Show an element by animating the height.

Dispatch rules

mod_seo dispatch rules

URL dispatch rules defined by mod_seo in apps/zotonic_mod_seo/priv/dispatch/dispatch.

Models

log_ui

Model for admin UI log retrieval by index, gated by admin permissions.

Modules

mod_export

Provides a generic framework for exporting resources, query results, and application-defined data. An export consists of a data provider and an encoder:

Scomp

debug

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

Filters

urldecode

Decode a text where characters are encoded as URL-safe characters.

Scomp

poll

Show a given survey (with the id parameter) as a “poll”. This presents a simpler interface, in which the user is directly asked to enter some information, e.g.

Dispatch rules

mod_facebook dispatch rules

URL dispatch rules defined by mod_facebook in apps/zotonic_mod_facebook/priv/dispatch/dispatch.

Models

edge

Access information about page connections.

Filters

to_binary

Convert the input to a binary value.

Notifications

observe_url_abs/2

Make a generated URL absolute, optionally called after url_rewrite by z_dispatcher

Actions

slide_toggle

Toggle an element by sliding it up and down.

Filters

to_name

Map a string to a name . That is a lowercased string with only [a-z0-9_] characters.

Filters

filesizeformat

This filter formats a numeric value as KB, MB etc. This filter can be used to display a number of bytes in a human readable format of kilo- or megabytes.

Filters

survey_test_max_points

Counts the total of all points that can be received for all test questions. Non test questions are not counted.

Filters

unescape

Removes HTML escaping from a text.

Filters

content_type_urls

Return the available content representations and URLs for a resource.

Filters

flatten_value

Flatten a list to a comma separated string.

Filters

url

Generates the relative URL for the given dispatch information.

Documentation

Release Notes

Every time a Zotonic release is made, we create a document which lists the most important changes. This page contains links to the release notes for each…

Models

admin_identity

Model for admin identity configuration values, including password policy regex and default category/content-group for new users.

Controllers

controller_admin_edit

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

Notifications

observe_pivot_fields/3

Foldr to change or add pivot fields for the main pivot table. The rsc contains all rsc properties for this resource, including pivot properties. Fold with a…

Modules

mod_clamav

Uses clamd to scan all uploaded files for viruses.

Modules

mod_email_dkim

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

Notifications

observe_email_sent/2

Notify that we could NOT send an e-mail (there might be a bounce later...) The Context is the depickled z_email:send/2 context.

Notifications

observe_action_event_type/2

Render the javascript for a custom action event type. The custom event type must be a tuple, for example: {% wire type={live id=myid} action={...} %}</code>…

Filters

make_value

Convert a template value to its simple value representation.

Scomp

tabs

Make a HTML element into a tab set.

Controllers

controller_admin_mailinglist_recipients

Shows the recipients of the current mailing list. The recipients are listed in three columns, and have a checkbox next to them to deactivate them.

Filters

escapejs

Escapes the value for insertion in JavaScript output.

Actions

set_value

Set the value of a form field.

Notifications

observe_user_is_enabled/2

Check if a user is enabled. Enabled users are allowed to log in. Return true , false or undefined . If undefined is returned, the user is considered enabled if…

Tags

print

Show the contents of a value expression.

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.

Notifications

observe_media_upload_rsc_props/3

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

Actions

script

This action executes JavaScript directly. It can be used to interface with non-Zotonic JavaScript libraries and functions.

Actions

module_toggle

Activate/deactivate a module in the module manager in the admin interface.

Models

site

Retrieve information that is stored in the site configuration. If you want to query values from the config table instead, you should use model#config.

Dispatch rules

mod_l10n dispatch rules

URL dispatch rules defined by mod_l10n in apps/zotonic_mod_l10n/priv/dispatch/dispatch.

Release notes

1.0.0_rc.15

Released on 2023-01-30.

Release notes

1.0.0_rc.14

Released on 2022-12-23.

Release notes

0.73.0

Welcome to Zotonic 0.73.0, released on December 8, 2022.

Release notes

1.0.0_rc.13

Released on 2022-12-05.

Release notes

0.72.0

Welcome to Zotonic 0.72.0, released on November 21, 2022.

Release notes

1.0.0_rc.12

Released on 2022-11-17.

Release notes

1.0.0_rc.11

Released on 2022-11-11.

Release notes

1.0.0_rc.10

Released on 2022-10-31.

Release notes

0.71.0

Welcome to Zotonic 0.71.0, released on October 18, 2022.

Release notes

1.0.0_rc.9

Released on 2022-10-12.

Release notes

0.70.1

Welcome to Zotonic 0.70.1, released on September 26, 2022.

Release notes

0.70.0

Welcome to Zotonic 0.70.0, released on September 16, 2022.

Release notes

1.0.0_rc.8

Released on 2022-09-13.

Release notes

0.69.0

Welcome to Zotonic 0.69.0, released on August 30, 2022.

Release notes

0.68.0

Welcome to Zotonic 0.68.0, released on July 21, 2022.

Release notes

0.67.0

Welcome to Zotonic 0.67.0, released on July 5, 2022.

Release notes

0.66.0

Welcome to Zotonic 0.66.0, released on May 24, 2022.

Article

Support & Services

Community support - mailinglists Do you want to start a Zotonic based project?  Then join our mailing lists and discuss Zotonic with us, our developers and our…

Support & Services

Developer guide

Get Zotonic

Choose a release or a development checkout and follow the installation guide.

Get Zotonic

Release notes

0.65.0

Welcome to Zotonic 0.65.0, released on March 17, 2022.

Release notes

0.64.0

Welcome to Zotonic 0.64.0, released on March 4, 2022.

Developer guide

Use stable resource names

A resource has a numeric ID within its database. Give application-owned resources a stable name when code needs to find them across installations.

Cookbook

Add an HTTP controller

Use controller_template when a dispatch rule only needs to render a template. Write a custom controller when the endpoint needs additional request processing…

Developer guide

Create your first site

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

Developer guide

Keep permission checks at the boundary

Use the request context when checking access to data and actions. A hidden button is not an authorization check: callers can invoke a model or endpoint…

Cookbook

Pivot Templates

Search uses database indices on special pivot columns and full text fields.

User guide

Zotonic for editors

Practical help for writing, organizing, and publishing website content.