Browse by topic

Discover Documentation

Explore related documentation through its most useful keyword groups.

1435 items

Grouped by Architecture

All Documentation

Filters

escape_check

Ensures thant an HTML escaped value is properly escaped.

Filters

escape_ical

Escape the value according to the RFC2445 rules.

Filters

escape_ical_text

Escape a value for an iCalendar TEXT property, such as SUMMARY, DESCRIPTION or LOCATION. Backslashes, commas and semicolons are escaped with a backslash. CRLF…

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.

User guide

Finding media

Locate the right file in the media library.

Developer guide

Find registered observers

Open Show an overview of all observers from the Development page. Find the notification and inspect the registered callbacks and their order.

Developer guide

Find the configuration layer to change

Distinguish global Zotonic configuration, Erlang runtime configuration, site configuration files, and module settings stored for a site. Similar setting names…

Developer guide

Find the status site and your site's admin

The status site manages the running Zotonic installation. A site's /admin manages that site's content and enabled modules. They have different scopes and can…

Find the status site and your site's admin

Developer guide

Find the template used by a page

Enable module#mod_development and open its template tools in the admin. Search for the template name and inspect the selected file and alternatives.

Filters

first

Returns the first character or element.

Tags

firstof

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

Filters

fix_ampersands

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

Filters

flatten_value

Flatten a list to a comma separated string.

Filters

floor

Round down a floating point value.

Actions

focus

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

Developer guide

Follow a request to its template

Start with the URL that gives an unexpected result. Check its hostname: Zotonic uses it to select a site before matching the site's dispatch rules.

Developer guide

Follow a request to its template

Start with the URL that gives an unexpected result. Check its hostname: Zotonic uses it to select a site before matching the site's dispatch rules.

Tags

for

Loop over multiple values in a list or search result.

Validators

format

Regular expression test.

Actions

form_reset

Resets the target form to its initial state.

Tags

fragment

Define a named reusable template fragment.

Filters

from_json

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

Filters

get_admin_url

Return the absolute administration URL for a Zotonic site.

Developer guide

Get Zotonic

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

Get Zotonic

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…

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…

Filters

gravatar_code

Calculate the gravatar code for an e-mail address:

Filters

group_by

Groups items of a list by a property.

Filters

group_firstchar

Group a list of sorted model#rsc resource IDs on their first letter of the title or another resource property. After grouping, it splits this list in a number…

Filters

group_title_firstchar

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

Actions

growl

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

Developer guide

Handle a browser event with a wire

Use scomp#wire to connect a browser event to an action or a server postback. Give the target element a stable ID within the rendered page.

Developer guide

Handle a browser event with a wire

Use scomp#wire to connect a browser event to an action or a server postback. Give the target element a stable ID within the rendered page.

Validators

hasedge

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

Developer guide

Help agents discover a site's public APIs

Help agents discover a site's public APIs Enable mod_agent_discovery on a public publishing site, using the Modules page in the admin. It depends on mod_base…

Actions

hide

Hide an element without any animation.

Models

hierarchy

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

Developer guide

How Zotonic stores and collects media files

How Zotonic stores and collects media files Zotonic separates a media resource's identity from its file bytes. A resource has a medium record with a logical…

Models

identity

The m_identity model manages usernames and other user identities. module#mod_authentication uses it to store and check salted passwords, but also provides a…

Filters

if

Selects an argument depending on a condition.

Tags

if

Show something if the condition is true.

Tags

ifchanged

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

Tags

ifequal

Show something if two values are equal.

Tags

ifnotequal

Show something if two values are not equal.

Filters

if_undefined

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

Tags

image

Show a still image using an <img\> element. The image will be automatically resized to the desired size and filters. For video, use the tag#media tag instead.

Models

image_edit

Manages the medium_edit_settings property for non destructive image editing.

Tags

image_url

Generate the url of a still image.

Models

import_csv_data

Model to track resources imported from CSV and XLSX files.

Models

import_feed

Discover, preview and manage the feeds imported by mod_import_feed .

Models

import_feed_log

Persistent feed activity, accessible to users allowed to use mod_import_feed . m.import_feed_log.list[FeedId][BeforeId] returns up to 100 events older than the…

Tags

include

Include another template. The include tag is replaced with the contents of the included template file. You can give arguments to the included template, they…

Filters

index_of

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

Filters

in_future

Tests if a date is in the future.