Browse by topic

Discover Documentation

Explore related documentation through its most useful keyword groups.

1337 items

Grouped by Architecture

All Documentation

Tags

cycle

Rotate through a list of values.

Filters

date

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

Validators

date

Validate input date against a given date format.

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

Model for development and diagnostics controls, including tracing flags, observer lists, cache/compile/reindex actions, and dispatch info.

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}} .

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…

Filters

escape_check

Ensures thant an HTML escaped value is properly escaped.

Filters

escape_ical

Escape the value according to the RFC2445 rules.

Filters

escapejs

Escapes the value for insertion in JavaScript output.

Filters

escapejson

Escapes the value for safe insertion into JSON strings.

Filters

escape_link

Convert any URLs in a plaintext into HTML links, with adding the rel="nofollow" attribute, and replaces all newlines with <br> tags.

Filters

escapexml

Escape the value for insertion in xml output.

Actions

event

Bind actions to a jQuery event or submit a form.

Filters

exclude

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

Developer guide

Expose an operation through an API

Start from the site's existing model API or controller patterns. Specify the method, input fields, response shape, and errors before connecting a browser or…

Cookbook

Expose data through a model

Create src/models/m_garden.erl in the Garden module. This complete example exposes a public greeting:

Developer guide

Expose data through a model

Create src/models/m_garden.erl in the Garden module. This complete example exposes a public greeting:

Tags

extends

Inherit markup from another template.

Filters

extract

Extract a specific property from each item in a list.

Models

facebook

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

Actions

fade_in

Show an element by animating the opacity.

Actions

fade_out

Hide an element by animating the opacity.

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.

Models

filestore

Read filestore configuration and statistics through m.filestore , for example {{ m.filestore.service }} or {{ m.filestore.stats.cloud }} in an admin template.

Models

fileuploader

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

Filters

filter

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

Tags

filter

Filter the contents of a block through variable filters.

Filters

filter_by

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