Text

All Text

mod_mqtt

MQTT is a machine-to-machine (M2M)/“Internet of Things” connectivity protocol. It was designed as an extremely…

live

Live updating templates connected to MQTT topics.

observe_auth_confirm/3

Confirm a user id.

inject_recipientdetails

Adds recipient query string details to hyperlinks.

Mailing list

inject_recipientdetails mailinglist_recipient_key_decode

Server configuration

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

Exometer metrics

Zotonic comes with a system for collecting and exporting metrics (such as how much memory is used, how many database…

0.29.0

Welcome to Zotonic 0.29.0, released on 5 June, 2017.

mod_survey

Adds the concept of survey resources: user-definable forms which can be created in the admin interface and filled out…

survey_as_pages

Split the page blocks into pages, prepare them for easy display in the survey question editor.

observe_menu_save/2

Save the menu tree of a menu resource

stringify

Translates atoms, integers and floats to strings. The undefined value is translated to the empty string. Does not…

to_binary

Convert the input to a binary value.

observe_export_resource_visible/2

mod_export - Check if the resource or dispatch is visible for export.

random

Returns a random value from a list of values. When the input is an empty list or not a list then the result is…

rand

Generates a random number. The number is from, and including, 1 up to, and including, the input value.

randomize

Shuffle a list of values.

mod_server_storage

Server side storage for the client (aka browser) and server.

mod_authentication

This module contains the main Zotonic authentication mechanism. It contains the logon and logoff controllers, and…

dispatch

Dispatch rules Name Path Resource Args logoff [“logoff”] controller_logoff [] logon [“logon”] controller_template…

0.08.1

Released on 2012-08-11 16:36 by arjan.

mod_wires

Actions, tags (also known as screen components), and javascript for user interfaces using wires .

Browser/server interaction

There are multiple ways to set up interaction between server-side Zotonic code and client-side JavaScript.

script

This tag is the placeholder where all generated JavaScript scripts will be output on the page.

print

See also

date

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

mod_content_groups

Module for content group support and ACL-aware content group behavior.

edge

Access information about page connections.

mod_base

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

group_title_firstchar

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

group_firstchar

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

mod_auth2fa

Two-factor authentication module adding TOTP setup, verification flows, and related auth checks.

mod_seo_sitemap

Creates a sitemap.xml file for your site, containing links to all publicly accessible pages.

menu

Show a page menu.

Displaying a site map

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

mod_bootstrap

Adds support for the Twitter Bootstrap CSS / JavaScript framework. Integration module for Bootstrap assets and helper…

mod_menu

Create nested navigation menus for your site.

dispatch

Dispatch rules Name Path Resource Args admin_menu_hierarchy [“admin”,”hierarchy”,name] controller_admin [{template

rsc_gone

This model tracks deleted resources (see m_rsc). Its primary goal is to be able to determine if a resource never…

identity

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

media

Access to data about uploaded files and other media.

category

This model can retrieve information about the resource category hierarchy in different ways.

Pivot Templates

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

Custom pivots

Search can only sort and filter on resources that actually have a database column. Zotonic’s resources are stored in a…

Media

Resources can have media resources attached to them. Resources and their media (images, video and audio) are connected…

Glossary

Action An action is functionality that can be attached to a HTML element or event. Actions are wired to an element or…

rsc

The main resource model, which is the central part of the Zotonic data model. This model provides an interface to all…

The Zotonic data model

Zotonic’s data model is a pragmatic implementation of the Semantic Web: a mixture between a traditional database and a…

Resources

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

observe_acl_context_authenticated/2

Set the context to a typical authenticated user. Used by m_acl.erl

Notifications

At different moments in the lifecycle of the web request, Zotonic sends notifications. By observing these notifications…

observe_rsc_pivot_done/2

Signal that a resource pivot has been done.