Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1383 items

Grouped by Architecture

All Text

Models

email_status

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

Filters

element

Select an element from a tuple or list of tuples.

Filters

after

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

Actions

remove

Remove an element from the page.

Filters

last

Returns the last character or element.

Actions

move

Move the target element by appending it to another element.

Notifications

observe_auth_logoff/3

User is about to log off. Modify (if needed) the logoff request context.

Modules

mod_media_exif

When uploading a file, this module extracts properties from the uploaded media and sets them in the resource.

Tags

all_include

Call all modules to include a certain template.

Tags

trans_ext

Translate a text value using gettext and substitute variables.

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.

Filters

group_by

Groups items of a list by a property.

Controllers

controller_admin_category_sorter

Shows the admin category screen where you can edit the category tree, rearranging the categories, adding new categories, or removing existing ones.

Filters

content_type_label

Return a translated, human-readable label for a MIME content type.

Tags

now

Show the current date and time.

Actions

unmask

Removes a mask that was placed over an element using the action#mask action.

Modules

mod_admin_frontend

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

Filters

ne_day

Tests if two dates are not equal.

Filters

join

Joins the elements of a list. Joins the elements of the input list together, separated by the argument.

Filters

sanitize_html

Sanitize a HTML code. Removes elements and attributes that might be dangerous, like <script> elements.

Validators

email_unique

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

Filters

is_a

Filter a list of resource ids on category, or test if a single resource id belongs to a category.

Notifications

observe_identity_verification/2

Request to send a verification to the user. Return ok or an error. Handled by mod_signup to send out verification emails. Identity may be undefined, or is an…

Filters

utc

Translates a datetime from local time to UTC.

Filters

set_url_language

Change the language of an URL to another language. Useful to generate alternative URLs for a page.

Modules

mod_audio

Adds support for viewing and handling audio medium items.

Models

fileuploader

Model to start uploads, upload a block and delete uploads.

Notifications

observe_survey_result_column_values/3

Modify row with answers for export. The header columns are given and the values that are known are set in the folded value. The user_id is the user who filled…

Actions

module_rescan

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

Tags

block

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

Modules

mod_seo

Adds basic search engine optimization to the base templates and provides an admin interface for configuring SEO options and Google Universal Analytics.

Filters

timesince

Show a readable version of a date/time difference.

Modules

mod_signup

This module presents an interface for letting users register themselves.

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

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

submit

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

Models

admin_menu

This model holds the admin menu, which is built up by calling each module to add items to the menu.

Dispatch rules

mod_filestore dispatch rules

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

Actions

typeselect

Show possible selections whilst typing.

Controllers

controller_admin

The admin controller is the main controller behind which admin pages are served. Its main purpose is that it does an authentication check (Is current user…

Filters

length

Returns the length of the value.

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

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.

Actions

zlink

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

Filters

pprint

Pretty print a zotonic value in a template.

Filters

to_integer

Convert the input to an integer value.

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

survey_is_submit

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

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.

Filters

show_media

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

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.

Controllers

controller_id

Handle different content representations of a page.

Filters

add_year

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

Modules

mod_translation

This module provides support for dealing with multiple languages.

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.

Tags

ifchanged

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

Actions

reset

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

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…

Actions

animate

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

Actions

template

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

Models

mqtt_ticket

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

Filters

if_undefined

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

Models

mailinglist

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

Validators

email

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

Actions

logoff

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

Models

signup

Exported APIs:

Modules

mod_search

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

Filters

sub_week

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

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…

Tags

comment

Ignore part of a template.

Filters

gravatar_code

Calculate the gravatar code for an e-mail address:

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.

Tags

autoescape

Automatically apply HTML escaping to values.

Filters

fix_ampersands

Replaces ampersands in the value with “&amp;” entities.

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.

Controllers

controller_admin_seo

Shows a form with settings related to Search Engine Optimization.

Modules

mod_acl_mock

Mocking module for access control during tests.