Browse by topic

Discover Text

Explore related documentation through its most useful keyword groups.

1022 items

Grouped by Architecture

All Text

Modules

mod_email_relay

This module supports relaying email between Zotonic servers.

Actions

slide_fade_out

Hide an element by animating the height and opacity.

Filters

rjust

Justifies the value in a field of a certain width to the right, using spaces.

Actions

mailinglist_unsubscribe

Cancel a mailing list subscription. The recipient id is given with the id argument.

Filters

escape_link

Convert any URLs in a plaintext into HTML links, with adding the rel="nofollow" attribute, and replaces all newlines with <br> tags.

Actions

mailinglist_confirm

Confirm a mailinglist subscription. Required argument is the confirm_key .

Filters

tokens

Returns a list of tokens from input string, separated by the characters in the filter argument.

Filters

urlize

Find urls in the given input and make them clickable.

Modules

mod_video

Adds support for viewing and handling video medium items.

Models

acl_rule

Model for ACL rule inspection and helper checks in mod_acl_user_groups, including insert/move checks, upload limits, mime checks, and ACL state lookups.

Models

admin_note

Add an editorial note to any resource.

Notifications

observe_rsc_update/3

An updated resource is about to be persisted. Observe this notification to change the resource properties before they are persisted.

Actions

slide_up

Hide an element by animating the height.

Tags

image_url

Generate the url of a still image.

Modules

mod_oembed

Makes media resources from embeddable URLs through the OEmbed protocol.

Modules

mod_import_csv

Module which adds “import CSV” button to the admin status screen.

Filters

chunk

This filter splits a list in shorter lists. It splits an array in sub-arrays of at most a given length. This is useful when displaying a list of items in…

Modules

mod_video_embed

This module, if activated, checks the pasted URLs in the create media / page dialog of the admin. It will show an embed option for Youtube and Vimeo URLs. It…

Modules

mod_oauth2

OAuth2 provider module for app/client/token management and authorization flows.

Dispatch rules

mod_admin dispatch rules

URL dispatch rules defined by mod_admin in apps/zotonic_mod_admin/priv/dispatch/dispatch.

Filters

max

Take the maximum of the filter value and its first argument.

Controllers

controller_admin_mailing_status

This controller shows the mailing status of a resource. It lists each mailing list available in the system, and shows whether or not the current resource has…

Modules

mod_logging

Logs messages to the database and adds log views to the admin.

Actions

dialog_close

Closes a dialog. When there is no dialog open then nothing happens.

Modules

mod_admin_identity

Provides identity management in the admin - for example the storage of usernames and passwords.

Filters

add_week

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

Notifications

observe_logon_options/3

Check for logon options, called if logon_submit returns undefined. This is used to fetch external (or local) authentication links for a username. Return:: map()

Actions

dialog_user_add

Show a dialog for adding a user. This creates a person resource and adds a username / password to it.

Models

import_csv_data

Model to track resources imported from CSV and XLSX files.

Actions

jquery_effect

Trigger various jQuery effects on the target element. Mostly, each of these effects have their own action as a shortcut, for example action#show, action#hide.

Modules

mod_artwork

This module contains many useful icons and images.

Actions

zmedia_choose

Used after a media item is selected in the media chooser for the TinyMCE editor.

Models

translation

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

Notifications

observe_export_resource_data/2

mod_export - fetch a row for the export, can return a list of rows, a binary, and optionally a continuation state. Where Values is [ term() ], i.e. a list of…

Modules

mod_admin_statistics

Admin module exposing site statistics views and related dashboard metrics.

Models

auth2fa

Model for two-factor authentication state and setup, including TOTP QR/image generation, mode checks, reset checks, and clock skew checks.

Actions

effect

Run a jQuery UI effect on the target element.

Actions

set_class

Set the class of an element.

Validators

postback

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

Modules

mod_menu

Create nested navigation menus for your site.

Tags

include

Include another template. The include tag is replaced with the contents of the included template file. You can give arguments to the included template, they…

Tags

trans

Translate a text value using gettext.

Tags

url

Generate the URL for a named dispatch rule. In this way it is possible to automatically change the generated URLs when the dispatch rules are modified.

Filters

embedded_media

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

Notifications

observe_import_resource/2

An external feed delivered a resource. First handler can import it. Return:: {ok, m_rsc:resource_id()} , {error, Reason} , or undefined

Filters

brlinebreaks

Translate HTML <br/> elements into ASCII newlines ( \n ).

Models

admin_config

Model for admin configuration views, including SSL certificate info, security directory info, and selected module config values.

Notifications

observe_acl_is_allowed/2

Check if a user is authorized to perform an operation on a an object (some resource or module). Observe this notification to do complex or more fine-grained…

Actions

link

Add an edge between two resources. Used in the admin.

Actions

toggle_class

Toggle a CSS class from an HTML element.

Scomp

wire

Connect actions and events to a HTML element.

Filters

range

Generate a list of integers, with an optional step.

Modules

mod_survey

Adds survey resources: user-defined forms that can be created in the admin interface and filled in by site visitors. The module renders multi-page forms

Filters

translate

Translates a (English) value to the current language or the given language.

Notifications

observe_media_upload_props/3

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

Modules

mod_contact

Implements a basic contact form, which gets emailed to the configuration value mod_contact.email , when submitted. Contact form module handling form submission

Modules

mod_authentication

This module contains the main Zotonic authentication mechanism. It contains the logon and logoff controllers, and implements the various hooks as described in…

Dispatch rules

mod_import_csv dispatch rules

URL dispatch rules defined by mod_import_csv in apps/zotonic_mod_import_csv/priv/dispatch/dispatch.

Actions

focus

Add a $(..).focus() jQuery call to the target element to give it input focus.

Notifications

observe_content_types_dispatch/3

Get available content types and their dispatch rules Example: {{<<”text”>>, <<”html”>>, []}, page} A special dispatch rule is ‘page_url’, which refers to the…

Controllers

controller_language_set

Controller which sets the language as given in the code argument, and redirects the user back to the page given in the p argument.

Filters

minmax

Force the given value in the given range.

Scomp

menu

Show a page menu.

Notifications

observe_auth_checked/2

Notify after logon of user with username, communicates valid or invalid password

Notifications

observe_auth_reset/2

First to check for password reset forms, return undefined, ok, or {error, Reason}.

Filters

admin_merge_diff

Compare two resources and return a formatted list of their differences.

Actions

dialog_duplicate_rsc

Open a dialog to duplicate the current resource with a new id and title.

Scomp

sorter

A sorter is a container for sortables.

Tags

call

Call an Erlang function.

Filters

min

Take the minimum of the filter value and its first argument.

Actions

fade_out

Hide an element by animating the opacity.