Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1342 items

Grouped by Architecture

All Text

Tags

catinclude

Include another template based on the category of a resource. The include tag is replaced with the contents of the included template file. You can give…

Models

rsc

The main resource model, which is the central part of the Zotonic data model. This model provides an interface to all resource ("page") information. It also…

Models

content_group

Model for content-group checks, currently exposing whether a content group is in use.

Models

comment

Model for comments attached to resources. It provides listing, moderation checks, counting, and retrieval of individual comments.

Filters

round

Round a floating point value to the nearest integer.

Notifications

observe_debug/2

Push some information to the debug page in the user-agent. Will be displayed with io_lib:format(“~p: p n”, [What, Arg]), be careful with escaping information!

Filters

without_embedded_media

Filter out media ids that are embedded in the body , body_extra and text blocks of your page.

Scomp

droppable

Mark an element as valid drag destination.

Models

facebook

Model for Facebook integration helpers, including auth-use flag, profile picture fetch, and Graph API proxy calls.

Models

admin

This model exposes some meta-information for the use in mod_admin templates.

Filters

slugify

Converts a text into a slug.

Tags

inherit

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

Reference

Port configurations

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

Controllers

controller_logon_done

This controller is used as a jumping stone after a log on from the /logon page. The p argument is passed from the /logon page.

Dispatch rules

mod_linkedin dispatch rules

URL dispatch rules defined by mod_linkedin in apps/zotonic_mod_linkedin/priv/dispatch/dispatch.

Notifications

observe_filewatcher/2

Broadcast some file changed, used for livereload by mod_development

Actions

buttonize

Add button interaction classes to an element.

Notifications

observe_activity/2

An activity in Zotonic. When this is handled as a notification then return a list of patterns matching this activity. These patterns are then used to find…

Modules

mod_admin_config

Add support for editing the site’s configuration values, as accessed through model#config.

Models

media

Access to data about uploaded files and other media.

Filters

parse_url

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

Notifications

observe_security_headers/2

Check and possibly modify the http response security headers All headers are in lowercase.

Filters

slice

Perform array-slice operations on a list or string.

Actions

slide_fade_in

Show an element by animating the height and opacity.

Actions

delete_username

Delete the username from a user, no confirmation.

Filters

to_json

Display any value as in JSON (JavaScript Object Notation).

Actions

publish

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

Notifications

observe_rsc_insert/3

Foldr for a resource insert, these are the initial properties and will overrule the properties in the insert request. Use with care. The props are the…

Filters

escapejson

Escapes the value for safe insertion into JSON strings.

Modules

mod_cookie_consent

Wrap external content in such a way that it is only loaded if the user consented to the inclusion of the content (and subsequent cookies).

Filters

url_abs

Generates an absolute URL for the given dispatch information.

Actions

dialog_config_delete

Open a dialog that asks confirmation to delete a configuration key/value pair.

Actions

fade_in

Show an element by animating the opacity.

Actions

dialog_config_new

Open a dialog to create a new configuration key/value pair.

Filters

capfirst

Converts the first character of the value to uppercase.

Dispatch rules

mod_logging dispatch rules

URL dispatch rules defined by mod_logging in apps/zotonic_mod_logging/priv/dispatch/dispatch.

Modules

mod_mqtt

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

Notifications

observe_media_upload_preprocess/2

Notification to translate or map a file after upload, before insertion into the database Used in mod_video to queue movies for conversion to mp4. You can set…

Actions

show

Show an element without any animation.

Models

backup

Model for backup configuration and operational status, including backup permissions, listing, directory, encryption settings, and active backup state.

Models

custom_redirect

Model for custom redirect records, exposing redirect list and individual redirect lookup by id.

Actions

form_reset

Resets the target form to its initial state.

Filters

pickle

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

Actions

reload

Reload the current page.

Filters

is_valid_email

Test whether a value has valid email-address syntax.

Notifications

observe_rsc_get/3

Resource is read, opportunity to add computed fields Used in a foldr with the read properties as accumulator.

Reference

Site configuration

This chapter describes the configuration options for your sites. There’s also global configuration.

Filters

menu_expand

Takes a menu, or a menu resource id, and adds all haspart objects connected to the menu ids.

Modules

mod_l10n

Localization of Zotonic. Provides lookups for country, month, week names. Localization module providing locale, country, and timezone data and related helpers.

Tags

lib

Combine css and javascript includes in a single request.

Notifications

observe_ssl_options/2

Request the SSL certificates for this site. The server_name property contains the hostname used by the client. (first) Returns either ‘undefined’ or a list of…

Tags

ifequal

Show something if two values are equal.

Filters

survey_any_correct_answer

Determine if any answer of a question was correct. Used for showing results of thurstone test questions.

Actions

mailing_page_test

Post a message to the test mailing list, given with the id argument.

Validators

format

Regular expression test.

Dispatch rules

mod_auth2fa dispatch rules

URL dispatch rules defined by mod_auth2fa in apps/zotonic_mod_auth2fa/priv/dispatch/dispatch.

Modules

mod_seo_sitemap

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

Models

search

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

Modules

mod_wires

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

Reference

Reference

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

Filters

as_atom

Convert a value to an Erlang atom.

Filters

truncate_html

Truncate a HTML text to a maximum length.

Filters

split_in

This filter split a list in shorter lists. It splits an array in N sub-arrays of more or less equal length. This is useful when displaying a list of items in…

Models

log

Model for runtime logging state and access to server log entries for clients allowed to read logs.

Filters

default

Provide an alternative value in case a value has a falsy value (0, false , undefined or empty string).

Filters

member

Finds a value in a list.

Filters

round_significant

Round a number value to a number of significant digits. The significance defaults to two digits.

Validators

name_unique

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

Validators

length

Check the length of a text input.

Dispatch rules

mod_contact dispatch rules

URL dispatch rules defined by mod_contact in apps/zotonic_mod_contact/priv/dispatch/dispatch.