Documentation

All Documentation

move

Move an element to another place, appending it to the target. The element is given by id with the element argument, or…

m_predicate

Retrieve information about predicates. Predicates are the labels on edges (connections between resources) that give…

m_ratelimit

Not yet documented.

m_req

This model gives access to the request variables from within a template.

m_rsc

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

m_rsc_gone

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

m_search

The m_search model provides access to different kinds of search queries for searching through models.

m_search_status

Not yet documented.

m_seo

Not yet documented.

m_seo_sitemap

Not yet documented.

m_server_storage

Model to access the server side storage of data.

m_signup

Exported APIs:

m_site

Retrieve information that is stored in the site configuration. If you want to query values from the config table…

m_site_update

Model for checking if a site has version control enabled.

m_ssl_letsencrypt

Not yet documented.

m_survey

Not yet documented.

m_sysconfig

Gives access to the Zotonic system configuration from the zotonic.config file(s).

m_tkvstore

Simple read-only interface to the typed key-value store of mod_tkvstore. To get a value from the store: use m.tkvstore.

m_translation

The m_translation model gives easy access to language and translation related information.

multiupload

Handle an uploaded file which is part of a multiple file upload from a user-agent. The upload is a #upload record or a…

name_unique

A validator to check whether a resource’s name is unique:

ne_day

Tests if two dates are not equal.

normalize_email

Normalize an email address, used in the identity management.

Notifications

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

Notifications

alert confirm growl

now

Show the current date and time.

nthtail

Fetch the nth tail of a list.

Numbers

filesizeformat format_duration format_integer format_number format_price is_even is_number max min minmax rand round…

numericality

Numerical input and range check.

Other cookbooks

Create a custom action Create a custom filter Create a custom model Create a custom controller Custom pivots Create a…

Other notifications

action_event_type activity activity_send admin_edit_blocks admin_menu admin_rscform category_hierarchy_save…

output_html

Fold for mapping non-iolist output to iolist values. Used when outputting a rendered HTML tree. Folded accumulator is:…

overlay_close

Closes the currently open overlay. When there is no overlay open then nothing happens.

overlay_open

Renders a template on the server and opens a full screen overlay with the HTML output of the template.

Overriding Zotonic

This chapter describes how to override the templates, styling and logic provided by Zotonic.

overrules

Inherit markup from like named template in another module.

Page handling

redirect reload

pager

Show a pager for search results.

Page-specific dynamic backgrounds

Use edges ( page connections ) to associate backgrounds with pages.

page_url

Fetch the url of a resource’s html representation

parse_url

Parses an URL (URI) using uri_string:parse/1 .

pickle

Pickle an Erlang value so that it can be safely submitted with a form.

pivot_fields

Foldr to change or add pivot fields for the main pivot table. The rsc contains all rsc properties for this resource

Pivot notifications

pivot_fields pivot_rsc_data pivot_update custom_pivot

pivot_rsc_data

Fold over the resource props map to extend/remove data to be pivoted

Pivot Templates

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

pivot_update

Pivot just before a m_rsc_update update. Used to pivot fields before the pivot itself.

poll

Show a given survey (with the id parameter) as a “poll”. This presents a simpler interface, in which the user is…

Port configurations

Port configurations can be tricky, especially in combination with SSL. Here we explain all steps to come to a correctly…

postback

Performs a custom server side validation of an input value. This allows you to add your own validation logic to HTML…

postback

This action sends a message to the event handler on the server.

postback_event

Message sent by a user-agent on a postback event. Encapsulates the encoded postback and any additional data. This is…

postback_notify

Handle a javascript notification from the postback handler. The message is the the request, trigger the id of the…

pprint

Pretty print a zotonic value in a template.

Predicates and Connections

dialog_predicate_new link unlink

presence

Check if an input has been filled in or checked.

print

Show the contents of a value expression.

Proxying Zotonic with nginx

It is possible to put Zotonic behind the nginx <http://nginx.org/> web server, for example if you have other, non

publish

Publishes a message on the topic tree of the current page.

rand

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

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…

randomize

Shuffle a list of values.

range

Generate a list of integers, with an optional step.

raw

Make a literal section which does not interpret tags.

redirect

This action redirects the browser to another page or back to the previous page.

Reference

All the nitty gritty details when the big picture has settled.

regroup

Not implemented tag, for forward compatibility with future ErlyDTL and Django versions.

Regular Expressions

match replace

Release 0.1.0

Released on 2009-11-13.

Release 0.10.0

Welcome Zotonic 0.10.0, released on April 18, 2014. These notes list the most important changes for this new feature…

Release 0.10.1

Released on 2014-06-17 20:27 by arjan.

Release 0.10.2

Released on 2014-10-01 20:16 by arjan.

Release 0.11.0

Welcome Zotonic 0.11.0, released on October 8, 2014. These notes list the most important changes for this new feature…

Release 0.11.1

Released on 2014-10-20 22:47 by arjan.

Release 0.12.0

Welcome Zotonic 0.12.0, released on October 8, 2014.

Release 0.12.1

Released on 2014-10-20 17:01 by arjan.

Release 0.12.2

Released on 2014-12-18 17:01 by mworrell.

Release 0.12.3

Released on 2014-12-22 10:30 by mworrell.

Release 0.12.4

Released on 2015-02-20 14:19 by arjan.

Release 0.13.0

Welcome Zotonic 0.13.0, released on July 3, 2015.

Release 0.13.1

Welcome Zotonic 0.13.1, released on July 29, 2015.

Release 0.13.2

Welcome Zotonic 0.13.2, released on August 11, 2015.

Release 0.13.3

Welcome Zotonic 0.13.3, released on September 9, 2015.

Release 0.13.4

Welcome Zotonic 0.13.4, released on September 16, 2015.

Release 0.13.5

Welcome Zotonic 0.13.5, released on October 27, 2015.

Release 0.13.6

Welcome Zotonic 0.13.6, released on December 14, 2015.

Release 0.13.7

Welcome Zotonic 0.13.7, released on 1 February, 2016.

Release 0.13.8

Welcome to Zotonic 0.13.8, released on 29 February, 2016.

Release 0.14.0

Welcome to Zotonic 0.14.0, released on 7 March, 2016.

Release 0.15.0

Welcome to Zotonic 0.15.0, released on 4 April, 2016.

Release 0.16.0

Welcome to Zotonic 0.16.0, released on 2 May, 2016.

Release 0.17.0

Welcome to Zotonic 0.17.0, released on 6 June, 2016.

Release 0.18.0

Welcome to Zotonic 0.18.0, released on 4 July, 2016.

Release 0.19.0

Welcome to Zotonic 0.19.0, released on 1 August, 2016.

Release 0.2.0

Released on 2009-12-11.

Release 0.20.0

Welcome to Zotonic 0.20.0, released on 5 September, 2016.

Release 0.21.0

Welcome to Zotonic 0.21.0, released on 3 October, 2016.