Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1070 items

Grouped by Architecture

All Text

Filters

split

Splits the filter value into a list of values.

Dispatch rules

mod_signup dispatch rules

URL dispatch rules defined by mod_signup in apps/zotonic_mod_signup/priv/dispatch/dispatch.

Filters

is_rtl

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

Filters

menu_flat

Flattens the rsc menu structure for use in a template loop.

Controllers

controller_signup_confirm

Controller which displays the confirmation page where the user can confirm his signup.

Models

log_ui

Model for admin UI log retrieval by index, gated by admin permissions.

Filters

to_name

Map a string to a name . That is a lowercased string with only [a-z0-9_] characters.

Modules

mod_clamav

Uses clamd to scan all uploaded files for viruses.

Models

admin_identity

Model for admin identity configuration values, including password policy regex and default category/content-group for new users.

Notifications

observe_pivot_fields/3

Foldr to change or add pivot fields for the main pivot table. The rsc contains all rsc properties for this resource, including pivot properties. Fold with a…

Filters

flatten_value

Flatten a list to a comma separated string.

Models

edge

Access information about page connections.

Filters

unescape

Removes HTML escaping from a text.

Filters

to_binary

Convert the input to a binary value.

Dispatch rules

mod_facebook dispatch rules

URL dispatch rules defined by mod_facebook in apps/zotonic_mod_facebook/priv/dispatch/dispatch.

Filters

urldecode

Decode a text where characters are encoded as URL-safe characters.

Notifications

observe_url_abs/2

Make a generated URL absolute, optionally called after url_rewrite by z_dispatcher

Modules

mod_export

Provides a generic framework for exporting resources, query results, and application-defined data. An export consists of a data provider and an encoder:

Scomp

poll

Show a given survey (with the id parameter) as a “poll”. This presents a simpler interface, in which the user is directly asked to enter some information, e.g.

Documentation

Release Notes

Every time a Zotonic release is made, we create a document which lists the most important changes. This page contains links to the release notes for each…

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.

Filters

content_type_urls

Return the available content representations and URLs for a resource.

Filters

url

Generates the relative URL for the given dispatch information.

Controllers

controller_admin_edit

The main admin edit controller. This controller serves the edit page where resources can be edited.

Scomp

debug

Shows which variables are assigned for use in the current template’s scope:

Actions

slide_toggle

Toggle an element by sliding it up and down.

Filters

survey_test_max_points

Counts the total of all points that can be received for all test questions. Non test questions are not counted.

Filters

escapejs

Escapes the value for insertion in JavaScript output.

Filters

make_value

Convert a template value to its simple value representation.

Modules

mod_email_dkim

Signs outgoing e-mails with DomainKeys Identified Mail Signatures ( RFC 6376).

Modules

mod_base

mod_base is the base module, which acts as a container module holding most of Zotonic basic dispatch rules, Actions and Module tags.

Controllers

controller_admin_mailinglist_recipients

Shows the recipients of the current mailing list. The recipients are listed in three columns, and have a checkbox next to them to deactivate them.

Notifications

observe_user_is_enabled/2

Check if a user is enabled. Enabled users are allowed to log in. Return true , false or undefined . If undefined is returned, the user is considered enabled if…

Actions

module_toggle

Activate/deactivate a module in the module manager in the admin interface.

Tags

print

Show the contents of a value expression.

Notifications

observe_action_event_type/2

Render the javascript for a custom action event type. The custom event type must be a tuple, for example: {% wire type={live id=myid} action={...} %}</code>…

Scomp

tabs

Make a HTML element into a tab set.

Actions

set_value

Set the value of a form field.

Notifications

observe_media_upload_rsc_props/3

Notification that a medium file has been uploaded. This is the moment to change resource properties, modify the file etc. The folded accumulator is the map…

Models

site

Retrieve information that is stored in the site configuration. If you want to query values from the config table instead, you should use model#config.

Dispatch rules

mod_l10n dispatch rules

URL dispatch rules defined by mod_l10n in apps/zotonic_mod_l10n/priv/dispatch/dispatch.

Notifications

observe_email_sent/2

Notify that we could NOT send an e-mail (there might be a bounce later...) The Context is the depickled z_email:send/2 context.

Actions

script

This action executes JavaScript directly. It can be used to interface with non-Zotonic JavaScript libraries and functions.

Release notes

1.0.0_rc.15

Released on 2023-01-30.

Release notes

1.0.0_rc.14

Released on 2022-12-23.

Release notes

0.73.0

Welcome to Zotonic 0.73.0, released on December 8, 2022.

Release notes

1.0.0_rc.13

Released on 2022-12-05.

Release notes

0.72.0

Welcome to Zotonic 0.72.0, released on November 21, 2022.

Release notes

1.0.0_rc.12

Released on 2022-11-17.

Release notes

1.0.0_rc.11

Released on 2022-11-11.

Release notes

1.0.0_rc.10

Released on 2022-10-31.

Release notes

0.71.0

Welcome to Zotonic 0.71.0, released on October 18, 2022.

Release notes

1.0.0_rc.9

Released on 2022-10-12.

Release notes

0.70.1

Welcome to Zotonic 0.70.1, released on September 26, 2022.

Release notes

0.70.0

Welcome to Zotonic 0.70.0, released on September 16, 2022.

Release notes

1.0.0_rc.8

Released on 2022-09-13.

Cookbook

Security, templates and XSS prevention

Ensuring that you don't fall victim to cross site scripting and other injection attacks takes vigilance, eye for details and especially some good naming habits.

Security, templates and XSS prevention

Release notes

0.69.0

Welcome to Zotonic 0.69.0, released on August 30, 2022.

Release notes

0.68.0

Welcome to Zotonic 0.68.0, released on July 21, 2022.

Release notes

0.67.0

Welcome to Zotonic 0.67.0, released on July 5, 2022.

Release notes

0.66.0

Welcome to Zotonic 0.66.0, released on May 24, 2022.

Article

Support & Services

Community support - mailinglists Do you want to start a Zotonic based project?  Then join our mailing lists and discuss Zotonic with us, our developers and our…

Support & Services

Developer guide

Download Zotonic

Get the latest release Download the latest release of Zotonic from Github. Use git clone, so that you can easily update later. Or clone our example project…

Download Zotonic

Release notes

0.65.0

Welcome to Zotonic 0.65.0, released on March 17, 2022.

Release notes

0.64.0

Welcome to Zotonic 0.64.0, released on March 4, 2022.

Developer guide

Server configuration

This chapter describes how to configure your Linux server for running Zotonic.

Developer guide

Resources

Resources are Zotonic’s main data unit. You may want to familiarise yourself with the Zotonic data model in the User Guide.

Cookbook

Exometer metrics

Zotonic comes with a system for collecting and exporting metrics (such as how much memory is used, how many database requests were made, etc.) called Exometer.

User guide

CMS

Zotonic is a Content Management System (CMS).

Cookbook

Create a custom controller

Zotonic comes with a large collection controllers that cover many use cases, so you’ll probably have to resort to custom controllers less often than you may be…

Developer guide

Creating sites

Initialize your site with a proper data model and some resources through manage_schema .

Cookbook

Displaying a site map

For the benefit of search engines and fans of tables of contents you can easily provide a site map.

Developer guide

Contributing to Zotonic

We encourage contributions to Zotonic from the community! This chapter describes how you can help improve Zotonic.

Developer guide

Access control

Access control is about defining who is allowed to access certain resources. It takes two steps:

Cookbook

Pivot Templates

Search uses database indices on special pivot columns and full text fields.

Cookbook

Icons in templates

Zotonic provides a couple of ways to show icons in templates:

User guide

User Guide

Welcome to the Zotonic User Guide. This guide is a non-technical introduction to Zotonic.

Developer guide

HTTPS support

Zotonic has built-in support for HTTPS and TLS (previously SSL) certificate handling.

Developer guide

Best Practices

Creating sites Media Best Practices Template Best Practices and Pitfalls

Cookbook

How to customise error pages

Specific error pages Zotonic’s controller_http_error first tries to find an error page template that is specific for the HTTP status code, named templates…