Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1342 items

Grouped by Architecture

All Text

Notifications

observe_signup_failed_url/2

Signup failed, give the error page URL. Return {ok, Url} or undefined. Reason is returned by the signup handler for the particular signup method (username

Actions

typeselect

Show possible selections whilst typing.

Actions

submit

Submits the enclosing form, a specifically targeted form or the closest form to an element.

Dispatch rules

mod_filestore dispatch rules

URL dispatch rules defined by mod_filestore in apps/zotonic_mod_filestore/priv/dispatch/dispatch.

Filters

timesince

Show a readable version of a date/time difference.

Actions

module_rescan

Rescans all modules, to find all templates, lib files, dispatch rules, etc. again.

Actions

trigger_event

Trigger a named {% wire %} event in the browser. The required name argument identifies the wire; every other action argument is passed to the named event.

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

Modules

mod_signup

This module presents an interface for letting users register themselves.

Reference

Global configuration

This section describes the location and contents of Zotonic’s global configuration files erlang.config and zotonic.config . There’s also site-specific…

Scomp

draggable

Mark a html element as draggable.

Filters

add_year

Adds a year to a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Filters

survey_is_submit

Check if the questions end with a question type that is a submit button.

Filters

show_media

Convert the image markers in HTML from the Rich Text editor into image tags.

Modules

mod_translation

This module provides support for dealing with multiple languages.

Filters

random

Returns a random value from a list of values. When the input is an empty list or not a list then the result is undefined.

Filters

pprint

Pretty print a zotonic value in a template.

Actions

zlink

Used for inserting an internal link in the TinyMCE editor in the admin.

Actions

reset

Resets the enclosing form, a specifically targeted form or the closest form to an element.

Controllers

controller_id

Handle different content representations of a page.

Notifications

observe_edge_delete/2

An edge has been deleted Note that the Context for this notification does not have the user who deleted the edge.

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…

Modules

mod_content_groups

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

Filters

sort

The sort filter takes a list of items to sort. Items can be an ordinary list of terms, property lists, or maps. It can also be a list of resource ids to be…

Tags

ifchanged

Not implemented, but exists in Zotonic for forward compatibility with future ErlyDTL and Django versions.

Actions

animate

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

Notifications

observe_acl_collab_groups_modify/3

Modify the list of collaboration groups of a user. Called internally by the ACL modules when fetching the list of collaboration groups a user is member of.

Filters

to_integer

Convert the input to an integer value.

Validators

email

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

Tags

comment

Ignore part of a template.

Tags

autoescape

Automatically apply HTML escaping to values.

Filters

gravatar_code

Calculate the gravatar code for an e-mail address:

Notifications

observe_media_preview_options/3

Modify the options for an image preview url or tag. This is called for every image url generation, except if the ‘original’ image option is passed. The…

Models

mqtt_ticket

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

Filters

sub_week

Subtracts a week from a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Models

signup

Exported APIs:

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.

Models

mailinglist

Model for mailinglist operations and reporting, including recipient counts, delivery stats, subscriptions, and scheduled mailings.

Filters

if_undefined

Tests whether a value is undefined, returning the given argument.

Actions

logoff

This action logs off the current user and reloads the current page as the anonymous visitor.

Actions

template

Render a template. When used in a postback action, the result will be sent back with the response data for the postback.

Filters

fix_ampersands

Replaces ampersands in the value with “&” entities.

Modules

mod_search

mod_search implements various ways of searching through the main resource table using model#search.

Notifications

observe_mailinglist_mailing/2

Send a page to a mailinglist (notify) Use {single_test_address, Email} when sending to a specific e-mail address.

Filters

survey_as_pages

Split the page blocks into pages, prepare them for easy display in the survey question editor.

Actions

insert_bottom

Inserts HTML after the contents of an HTML element.

Validators

acceptance

Check if an input value evaluates to true.

Modules

mod_acl_mock

Mocking module for access control during tests.

Scomp

chart_pie

Render a pie chart as inline SVG.

Documentation

Glossary

Action An action is functionality that can be attached to a HTML element or event. Actions are wired to an element or event. Think of showing dialogs, posting…

Notifications

observe_dispatch/2

Final try for dispatch, try to match the request. Called when the site is known, but no match is found for the path

Controllers

controller_admin_seo

Shows a form with settings related to Search Engine Optimization.

Release notes

0.77.0

Welcome to Zotonic 0.77.0, released on May 25, 2023.

Release notes

0.76.0

Welcome to Zotonic 0.76.0, released on April 4, 2023.

Release notes

0.75.0

Welcome to Zotonic 0.75.0, released on March 2, 2023.

Models

server_storage

Model to access the server side storage of data.

Notifications

observe_rsc_update_done/2

An updated resource has just been persisted. Observe this notification to execute follow-up actions for a resource update.

Actions

insert_top

Inserts HTML before the contents of an HTML element.

Models

ratelimit

Model for exposing current ratelimit timeout information for the active request context.

Filters

sub_hour

Subtracts an hour from a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Reference

Configuration

Global configuration Site configuration Port configurations

Notifications

observe_rsc_import_fetch/2

Fetch the data for an import of a resource. Returns data in the format used by m_rsc_export and m_rsc_import. Either returns the JSON data, the imported…

Notifications

observe_dropbox_file/2

Handle a new file received in the ‘files/dropbox’ folder of a site. Unhandled files are deleted after an hour. If the handler returns ‘ok’ then the file is…

Scomp

validate

The validator tag accepts the following arguments:

Filters

append

Appends the argument to the value.

Filters

add_month

Adds a month to a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Notifications

observe_email_drop_handler/2

Drop an e-mail handler for a user/resource id. (notify). The notification, user and resource should be the same as when the handler was registered.

Actions

dialog_new_rsc

Show the admin dialog for creating a new resource.

Modules

mod_geoip

Used to map IP addresses to geographical locations.

Dispatch rules

mod_microsoft dispatch rules

URL dispatch rules defined by mod_microsoft in apps/zotonic_mod_microsoft/priv/dispatch/dispatch.

Controllers

controller_admin_comments

Shows an admin screen with an overview of most recently created comments. The screen offers the option to moderate the comments or delete them entirely.

Filters

summary

Extract a summary from a resource.