Browse by topic

Discover Documentation

Explore related documentation through its most useful keyword groups.

1337 items

Grouped by Architecture

All Documentation

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 “&” 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.

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

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.

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.

Tags

inherit

Include the markup of an extended template into the extending template.

Filters

in_past

Tests if a date is in the past.

Filters

insert

Prepends the argument in front of the value.

Actions

insert_after

Insert rendered HTML immediately after the target element.

Actions

insert_before

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

Actions

insert_bottom

Inserts HTML after the contents of an HTML element.

Actions

insert_top

Inserts HTML before the contents of an HTML element.

Developer guide

Inspect logs and running processes

Use bin/zotonic logtail for the configured console log, or select error or crash when those files are available. The command prints the last 500 lines and…

Developer guide

Inspect template dependencies

Open Dependency graph of all available templates from the Development page. Use the graph to understand inheritance and include relationships before changing a…

Developer guide

Introduction

This is the Zotonic Developer Guide. It takes you through all aspects of Zotonic so you can start building your own sites as quickly as possible.

Filters

ip2country

Return the lowercase ISO country code associated with an IP address.

Filters

ip2geo

Return geographic information associated with an IP address.

Filters

is_a

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

Filters

is_even

Test if an integer value is even:

Filters

is_list

Test if a value is a list:

Filters

is_not_a

is_not_a mirrors filter#is_a. It is particularly useful when iterating over a category and excluding members of a sub-category (iterating over all images…

Filters

is_number

Test if a value is a number (integer or floating point):

Filters

is_rtl

Check if the given language is a rtl or ltr language.

Filters

is_site_url

Test if the given URL is a url for the current site.

Filters

is_user

Test if a resource is a user.

Filters

is_valid_email

Test whether a value has valid email-address syntax.