Reference

All Reference

DOM Elements

add_class animate buttonize effect fade_in fade_out hide insert_after insert_before insert_bottom insert_top…

draggable

Mark a html element as draggable.

droppable

Mark an element as valid drag destination.

edge

Access information about page connections.

Edge notifications

edge_delete edge_insert edge_update

Editor

editor_add editor_remove zlink zmedia zmedia_choose zmedia_has_chosen

editor_add

Add WYSIWYG editor controls to all textarea’s with the z_editor class in the target.

editor_remove

Remove any WYSIWYG editor controls from all textarea’s with the z_editor class in the target.

editor_tinymce

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

effect

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

element

Select an element from a tuple or list of tuples.

email

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

email_dkim

DomainKeys Identified Mail Signatures (RFC 6376) is a method to add a signature to outgoing emails. This enables…

E-mail notifications

email_add_handler email_bounced email_dkim_options email_drop_handler email_ensure_handler email_failed…

email_receive_recipient

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

email_relay

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

email_status

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

email_unique

Check if an entered e-mail address is unique, by looking in the m_identity table for the email key:

embedded_media

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

enable

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

Encryption

md5 sha1

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

escape

HTML escape a text. Escapes all reserved HTML characters in the value. Escaped strings are safe to be displayed in a…

escape_check

Ensures thant an HTML escaped value is properly escaped.

escape_ical

Escape the value according to the RFC2445 rules.

escapejs

Escapes the value for insertion in JavaScript output.

escapejson

Escapes the value for safe insertion into JSON strings.

escape_link

Convert any URLs in a plaintext into HTML links, with adding the rel="nofollow" attribute, and replaces all newlines…

escapexml

Escape the value for insertion in xml output.

event

Bind actions to a jQuery event or submit a form.

Events

postback trigger_event publish

exclude

Filters a list on the value of a property, either on absence or inequality.

extends

See also

extract

Extract a specific property from each item in a list.

facebook

Model for Facebook integration helpers, including auth-use flag, profile picture fetch, and Graph API proxy calls.

fade_in

Show an element by animating the opacity.

fade_out

Hide an element by animating the opacity.

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…

filestore

The filestore uses two tables for its administration.

fileuploader

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

filter

Filter the contents of a block through variable filters.

filter

Filters a list on the value of a property, either on presence or equality.

filter_by

Filter a list of items based on a property value and optional predicate.

first

Returns the first character or element.

firstof

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

fix_ampersands

Replaces ampersands in the value with “&” entities.

flatten_value

Flatten a list to a comma separated string.

floor

Round down a floating point value.

focus

Add a $(..).focus() jQuery call to the target element to give it input focus.

for

Loop over multiple values in a list or search result.

force_escape

HTML escapes a text.

format

Regular expression test.

format_dispatch_controller_option

Format dispatch controller options.

format_dispatch_path_element

Format dispatch path element so variables will be more visible.

format_duration

Show a duration in hours, minutes and seconds.

format_integer

Show an integer value.

format_number

Show an integer or float.

format_price

Show a price with decimals.

form_reset

Resets the target form to its initial state.

Forms

pickle

Forms

disable enable event focus form_reset reset set_value submit typeselect validation_error

from_json

Parse a string as a JSON (JavaScript Object Notation) value. The returned value can be processed futher.

Global configuration

This section describes the location and contents of Zotonic’s global configuration files erlang.config and zotonic.

Global template variables

These variables are always available for rendering in templates.

google_chart

Make charts with Google.

gravatar_code

Calculate the gravatar code for an e-mail address:

group_by

Groups items of a list by a property.

group_firstchar

Group a list of sorted resource ids on their first letter of the title or another rsc property. After grouping, it…

group_title_firstchar

Similar to group_firstchar, but always uses the title column from the rsc table.

growl

Show a message in the upper right corner of the browser window. The message will automatically disappear after some…

hasedge

A validator to check if a resource has a certain number of edges with a predicate.

hide

Hide an element without any animation.

hierarchy

The category hierarchy tables have been replaced by m_hierarchy . This model defines named hierarchies of resources…

HTML

show_media striptags truncate_html sanitize_html sanitize_url urlize embedded_media without_embedded_media render…

identity

The m_identity model manages usernames and other user identities. mod_authentication uses it to store and check salted…

if

Selects an argument depending on a condition.

if

See also

ifchanged

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

ifequal

See also

ifnotequal

See also

if_undefined

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

image

See also

image_edit

Manages the medium_edit_settings property for non destructive image editing.

image_url

See also

import_csv_data

Model to track resources imported from CSV and XLSX files.

Import/export notifications

import_csv_definition import_resource export_resource_content_disposition export_resource_content_type…

include

See also

index_of

Returns the index of the first occurrence of the item in the given list.

in_future

Tests if a date is in the future.

inherit

See also

inject_recipientdetails

Adds recipient query string details to hyperlinks.

in_past

Tests if a date is in the past.

inplace_textbox

Render a JS-aided inplace textbox.

insert

Prepends the argument in front of the value.

insert_after

Insert the result of a render action after of an HTML element.

insert_before

Insert the result of a render action before an HTML element.

insert_bottom

Inserts HTML after the contents of an HTML element.

insert_top

Inserts HTML before the contents of an HTML element.

Installation requirements

Zotonic runs on Linux, Mac OS X and (not officially) on Windows.