Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1370 items

Grouped by Architecture

All Text

Tags

for

Loop over multiple values in a list or search result.

Models

development

Model for development and diagnostics controls, including tracing flags, observer lists, cache/compile/reindex actions, and dispatch info.

Scomp

chart_pie3d

Deprecated compatibility alias for scomp#chart_pie.

Scomp

sortable

Mark an element as sortable.

Filters

rand

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

Models

admin_blocks

Model for listing editable content blocks for a resource in the admin interface.

Controllers

controller_logoff

Controller that logs off a user, destroying the session. It also removes any “remember me” cookies the user has, so that auto-logon is disabled.

Filters

add_day

Adds a day to a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Filters

is_list

Test if a value is a list:

Models

survey

Model for survey reporting and participant state, including results, totals, per-user answers, exports, and result handlers.

Models

log_email

Model for email log lookups used by logging/admin views.

Modules

mod_microsoft

Adds logon using the Microsoft identity platform.

Notifications

observe_activity_send/2

Push a list of activities via a ‘channel’ (eg ‘email’) to a recipient. The activities are a list of #activity{} records.

Notifications

observe_media_import_medium/2

Notification to import a medium record from external source. This is called for non-file medium records, for example embedded video. If the medium record is…

Controllers

controller_admin_media_preview

A controller for rendering preview thumbnails of any media embedded in a richtext-editor component of a resource on the controller#controller_admin_edit page.

Modules

mod_admin_predicate

Add support for editing predicates in the admin, by presenting a list of all defined predicates on http://yoursite.com/admin/predicate .

Models

seo

Model for SEO-related settings and generated SEO metadata, including webmaster verification keys, analytics settings, and JSON-LD output.

Models

req

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

Filters

sub_day

Subtracts a day from a date. The value must be of the form {{Y,M,D},{H,I,S}} .

Filters

language_dir

Return rtl or ltr depening on the direction of the language.

Actions

insert_after

Insert rendered HTML immediately after the target element.

Actions

disable

Sets the “disabled” attribute of a HTML tag and adds the CSS class “disabled”.

Filters

round

Round a floating point value to the nearest integer.

Actions

overlay_close

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

Scomp

droppable

Mark an element as valid drag destination.

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…

Notifications

observe_signup/2

Request a signup of a new or existing user. Arguments are similar to #signup_url{} Returns {ok, UserId} or {error, Reason}

Models

comment

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

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…

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!

Models

content_group

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

Filters

without_embedded_media

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

Actions

overlay_open

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

Models

facebook

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

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.

Actions

delete_username

Delete the username from a user, no confirmation.

Filters

slugify

Converts a text into a slug.

Dispatch rules

mod_linkedin dispatch rules

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

Filters

slice

Perform array-slice operations on a list or string.

Tags

inherit

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

Notifications

observe_security_headers/2

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

Models

admin

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

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…

Models

media

Access to data about uploaded files and other media.

Filters

parse_url

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

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.

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…

Actions

slide_fade_in

Show an element by animating the height and opacity.

Notifications

observe_filewatcher/2

Broadcast some file changed, used for livereload by mod_development

Modules

mod_admin_config

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

Actions

buttonize

Add button interaction classes to an element.

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…

Filters

url_abs

Generates an absolute URL for the given dispatch information.

Dispatch rules

mod_logging dispatch rules

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

Actions

show

Show an element without any animation.

Actions

dialog_config_new

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

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.

Filters

escapejson

Escapes the value for safe insertion into JSON strings.

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

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

capfirst

Converts the first character of the value to uppercase.

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

to_json

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

Tags

lib

Include CSS and JavaScript libraries, combining files of each type into a single request.

Notifications

observe_rsc_get/3

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

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…

Models

custom_redirect

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

Actions

reload

Reload the current page.

Models

backup

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

Modules

mod_l10n

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

Filters

survey_any_correct_answer

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

Filters

is_valid_email

Test whether a value has valid email-address syntax.

Filters

pickle

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